How to use the metal-soy.toIncDom function in metal-soy

To help you get started, we’ve selected a few metal-soy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LiferayCloud / marble / packages / marble-datatable / src / Datatable.js View on Github external
visitValuesAndWrapStringValues_(value) {
    let acceptArray = (val, key, reference) =>
      (reference[key] = this.visitValuesAndWrapStringValues_(val));
    let acceptObject = (val, key, reference) =>
      (reference[key] = this.visitValuesAndWrapStringValues_(val));
    this.visit_(value, acceptArray, acceptObject);
    if (core.isObject(value)) {
      let type = this.getValueType_(value.value);
      if (type === Datatable.TYPES.STRING) {
        value.value = Soy.toIncDom(value.value);
      }
    }
    return value;
  }
}
github LiferayCloud / marble / packages / marble-select / src / Select.js View on Github external
    data.items = this.items.map(item => Soy.toIncDom(item));
    return data;

metal-soy

A soy templates renderer to be used with Metal.js's Component class

BSD
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis