MCPcopy
hub / github.com/tdewolff/minify / formatTplSimple

Function formatTplSimple

_benchmarks/sample_echarts.js:16548–16553  ·  view source on GitHub ↗

* simple Template formatter

(tpl, param, encode)

Source from the content-addressed store, hash-verified

16546 */
16547
16548 function formatTplSimple(tpl, param, encode) {
16549 each(param, function (value, key) {
16550 tpl = tpl.replace('{' + key + '}', encode ? encodeHTML(value) : value);
16551 });
16552 return tpl;
16553 }
16554 function getTooltipMarker(inOpt, extraCssText) {
16555 var opt = isString(inOpt) ? {
16556 color: inOpt,

Callers 1

sample_echarts.jsFile · 0.85

Calls 2

encodeHTMLFunction · 0.85
eachFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…