How to use the metal-incremental-dom.HTML2IncDom.buildFn function in metal-incremental-dom

To help you get started, we’ve selected a few metal-incremental-dom 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 metal / metal.js / packages / metal-soy / src / Soy.js View on Github external
toIncDom(value) {
		if (isObject(value) && isString(value.content) && (value.contentKind === 'HTML')) {
			value = value.content;
		}
		if (isString(value)) {
			value = HTML2IncDom.buildFn(value);
		}
		return value;
	}
}

metal-incremental-dom

A Component renderer for templates compiled to incremental dom

BSD
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis