diff --git a/README.md b/README.md index a3d472a..fe8d748 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ ## JsRender: best-of-breed templating +[![CDNJS version](https://img.shields.io/cdnjs/v/jsrender.svg)](https://cdnjs.com/libraries/jsrender) + *Simple and intuitive, powerful and extensible, lightning fast* *For templated content in the browser or on Node.js (with Express 4, Hapi and Browserify integration)* diff --git a/demos/index.html b/demos/index.html index 15e9a32..f8ce5ea 100644 --- a/demos/index.html +++ b/demos/index.html @@ -34,9 +34,9 @@

Demos

JsViews are interactive data-driven views, built on top of JsRender templates
-
JsViews: Demos
+
JsViews: Demos
JsViews and JsRender Overview:
-
Demo sequence from jQuery Conference October 2011
+
Demo sequence from jQuery Conference October 2011
Other links:
diff --git a/demos/scenarios/01_default-values-scenario.html b/demos/scenarios/01_default-values-scenario.html index c51b82b..4a006c0 100644 --- a/demos/scenarios/01_default-values-scenario.html +++ b/demos/scenarios/01_default-values-scenario.html @@ -1,7 +1,7 @@  - + diff --git a/demos/scenarios/02_separators-scenario.html b/demos/scenarios/02_separators-scenario.html index 358464e..0bcf026 100644 --- a/demos/scenarios/02_separators-scenario.html +++ b/demos/scenarios/02_separators-scenario.html @@ -1,7 +1,7 @@  - + diff --git a/demos/scenarios/03_iterating-through-fields-scenario.html b/demos/scenarios/03_iterating-through-fields-scenario.html index 4033a73..5f526c9 100644 --- a/demos/scenarios/03_iterating-through-fields-scenario.html +++ b/demos/scenarios/03_iterating-through-fields-scenario.html @@ -1,7 +1,7 @@  - + diff --git a/demos/scenarios/04_assigning-variables-scenario.html b/demos/scenarios/04_assigning-variables-scenario.html index d3bc599..f1f8442 100644 --- a/demos/scenarios/04_assigning-variables-scenario.html +++ b/demos/scenarios/04_assigning-variables-scenario.html @@ -1,7 +1,7 @@  - + diff --git a/demos/scenarios/05_arrays-plus-headers-and-footers.html b/demos/scenarios/05_arrays-plus-headers-and-footers.html index 1face02..510f362 100644 --- a/demos/scenarios/05_arrays-plus-headers-and-footers.html +++ b/demos/scenarios/05_arrays-plus-headers-and-footers.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/01_inserting-data.html b/demos/step-by-step/01_inserting-data.html index 47bafb7..1799d2a 100644 --- a/demos/step-by-step/01_inserting-data.html +++ b/demos/step-by-step/01_inserting-data.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/02_compiling-named-templates-from-strings.html b/demos/step-by-step/02_compiling-named-templates-from-strings.html index 78ff383..cacceee 100644 --- a/demos/step-by-step/02_compiling-named-templates-from-strings.html +++ b/demos/step-by-step/02_compiling-named-templates-from-strings.html @@ -1,7 +1,7 @@ - + diff --git a/demos/step-by-step/03_converters-and-encoding.html b/demos/step-by-step/03_converters-and-encoding.html index 6a2b319..d126bbd 100644 --- a/demos/step-by-step/03_converters-and-encoding.html +++ b/demos/step-by-step/03_converters-and-encoding.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/04_if-else-tag.html b/demos/step-by-step/04_if-else-tag.html index 4fafc68..e4febdc 100644 --- a/demos/step-by-step/04_if-else-tag.html +++ b/demos/step-by-step/04_if-else-tag.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/05_for-tag.html b/demos/step-by-step/05_for-tag.html index e132bf2..5635963 100644 --- a/demos/step-by-step/05_for-tag.html +++ b/demos/step-by-step/05_for-tag.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/06_template-composition.html b/demos/step-by-step/06_template-composition.html index b9e54c6..df6fce7 100644 --- a/demos/step-by-step/06_template-composition.html +++ b/demos/step-by-step/06_template-composition.html @@ -1,7 +1,7 @@ - + diff --git a/demos/step-by-step/07_paths.html b/demos/step-by-step/07_paths.html index 760b8a3..e25deb9 100644 --- a/demos/step-by-step/07_paths.html +++ b/demos/step-by-step/07_paths.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/08_custom-tags.html b/demos/step-by-step/08_custom-tags.html index 229b371..db81eee 100644 --- a/demos/step-by-step/08_custom-tags.html +++ b/demos/step-by-step/08_custom-tags.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/09_helper-functions.html b/demos/step-by-step/09_helper-functions.html index eeb2de8..6bad6ef 100644 --- a/demos/step-by-step/09_helper-functions.html +++ b/demos/step-by-step/09_helper-functions.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/10_comparison-tests.html b/demos/step-by-step/10_comparison-tests.html index e8f320c..ab62355 100644 --- a/demos/step-by-step/10_comparison-tests.html +++ b/demos/step-by-step/10_comparison-tests.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/11_accessing-parent-data.html b/demos/step-by-step/11_accessing-parent-data.html index 78bcc88..e18199e 100644 --- a/demos/step-by-step/11_accessing-parent-data.html +++ b/demos/step-by-step/11_accessing-parent-data.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/12_passing-in-context.html b/demos/step-by-step/12_passing-in-context.html index 2276c23..a5d633c 100644 --- a/demos/step-by-step/12_passing-in-context.html +++ b/demos/step-by-step/12_passing-in-context.html @@ -1,7 +1,7 @@  - + diff --git a/demos/step-by-step/13_associating-helpers-with-templates.html b/demos/step-by-step/13_associating-helpers-with-templates.html index 12c209a..7fa8dca 100644 --- a/demos/step-by-step/13_associating-helpers-with-templates.html +++ b/demos/step-by-step/13_associating-helpers-with-templates.html @@ -1,7 +1,7 @@  - + diff --git a/demos/variants/accessing-templates/01_compiling-template-objects-from-strings.html b/demos/variants/accessing-templates/01_compiling-template-objects-from-strings.html index 24fc450..de5eccd 100644 --- a/demos/variants/accessing-templates/01_compiling-template-objects-from-strings.html +++ b/demos/variants/accessing-templates/01_compiling-template-objects-from-strings.html @@ -1,7 +1,7 @@ - + diff --git a/demos/variants/accessing-templates/02_registering-named-template-from-script-declaration.html b/demos/variants/accessing-templates/02_registering-named-template-from-script-declaration.html index 1b8045e..15e2d7d 100644 --- a/demos/variants/accessing-templates/02_registering-named-template-from-script-declaration.html +++ b/demos/variants/accessing-templates/02_registering-named-template-from-script-declaration.html @@ -1,7 +1,7 @@ - + diff --git a/demos/variants/accessing-templates/03_getting-template-objects-from-script-declaration.html b/demos/variants/accessing-templates/03_getting-template-objects-from-script-declaration.html index 5359587..34aef10 100644 --- a/demos/variants/accessing-templates/03_getting-template-objects-from-script-declaration.html +++ b/demos/variants/accessing-templates/03_getting-template-objects-from-script-declaration.html @@ -1,7 +1,7 @@ - + diff --git a/demos/variants/accessing-templates/04_template-composition-subtemplates.html b/demos/variants/accessing-templates/04_template-composition-subtemplates.html index 2d14e12..488a985 100644 --- a/demos/variants/accessing-templates/04_template-composition-subtemplates.html +++ b/demos/variants/accessing-templates/04_template-composition-subtemplates.html @@ -1,7 +1,7 @@ - + diff --git a/demos/variants/accessing-templates/05_template-composition-templateobjects.html b/demos/variants/accessing-templates/05_template-composition-templateobjects.html index b8cd019..903ee33 100644 --- a/demos/variants/accessing-templates/05_template-composition-templateobjects.html +++ b/demos/variants/accessing-templates/05_template-composition-templateobjects.html @@ -1,7 +1,7 @@ - + diff --git a/jsrender-node.js b/jsrender-node.js index b0dbd08..a2e6bf5 100644 --- a/jsrender-node.js +++ b/jsrender-node.js @@ -1,4 +1,4 @@ -/*! JsRender v1.0.11: http://jsviews.com/#jsrender */ +/*! JsRender v1.0.12: http://jsviews.com/#jsrender */ /*! **VERSION FOR NODE.JS** (For WEB see http://jsviews.com/download/jsrender.js) */ /* * Best-of-breed templating in browser or on Node.js. @@ -20,7 +20,7 @@ if (typeof exports !== 'object' ) { //========================== Top-level vars ========================== // global var is the this object, which is window when running in the usual browser environment -var versionNumber = "v1.0.11", +var versionNumber = "v1.0.12", $, jsvStoreName, rTag, rTmplString, topView, $views, _ocp = "_ocp", // Observable contextual parameter @@ -59,6 +59,7 @@ var versionNumber = "v1.0.11", lt: "<" }, HTML = "html", + STRING = "string", OBJECT = "object", tmplAttr = "data-jsv-tmpl", jsvTmpl = "jsvTmpl", @@ -563,7 +564,7 @@ function convertArgs(tagElse, bound) { // tag.cvtArgs() or tag.cvtArgs(tagElse?, bindFrom = tag.bindFrom; args = tagCtx.args; - if ((converter = tag.convert) && "" + converter === converter) { + if ((converter = tag.convert) && typeof converter === STRING) { converter = converter === "true" ? undefined : (tagCtx.view.getRsc("converters", converter) || error("Unknown converter: '" + converter + "'")); @@ -626,7 +627,7 @@ function convertBoundArgs(tagElse) { // tag.bndArgs() function getResource(resourceType, itemName) { var res, store, view = this; - if ("" + itemName === itemName) { + if (typeof itemName === STRING) { while ((res === undefined) && view) { store = view.tmpl && view.tmpl[resourceType]; res = store && store[itemName]; @@ -1025,13 +1026,13 @@ function compileTag(name, tagDef, parentTmpl) { depends: tagDef.depends, render: tagDef }; - } else if ("" + tagDef === tagDef) { + } else if (typeof tagDef === STRING) { tagDef = {template: tagDef}; } if (baseTag = tagDef.baseTag) { tagDef.flow = !!tagDef.flow; // Set flow property, so defaults to false even if baseTag has flow=true - baseTag = "" + baseTag === baseTag + baseTag = typeof baseTag === STRING ? (parentTmpl && parentTmpl.tags[baseTag] || $tags[baseTag]) : baseTag; if (!baseTag) { @@ -1048,7 +1049,7 @@ function compileTag(name, tagDef, parentTmpl) { // Tag declared as object, used as the prototype for tag instantiation (control/presenter) if ((tmpl = compiledDef.template) !== undefined) { - compiledDef.template = "" + tmpl === tmpl ? ($templates[tmpl] || $templates(tmpl)) : tmpl; + compiledDef.template = typeof tmpl === STRING ? ($templates[tmpl] || $templates(tmpl)) : tmpl; } (Tag.prototype = compiledDef).constructor = compiledDef._ctr = Tag; @@ -1076,7 +1077,7 @@ function compileTmpl(name, tmpl, parentTmpl, options) { // If value is of type string - treat as selector, or name of compiled template // Return the template object, if already compiled, or the markup string var currentName, tmpl; - if (("" + value === value) || value.nodeType > 0 && (elem = value)) { + if ((typeof value === STRING) || value.nodeType > 0 && (elem = value)) { if (!elem) { if (/^\.?\/[^\\:*?"<>]*$/.test(value)) { // value="./some/file.html" (or "/some/file.html") @@ -1215,7 +1216,7 @@ function compileViewModel(name, type) { for (; j < getterCount; j++) { prop = getters[j]; getterType = undefined; - if (prop + "" !== prop) { + if (typeof prop !== STRING) { getterType = prop; prop = getterType.getter; parentRef = getterType.parentRef; @@ -1228,7 +1229,7 @@ function compileViewModel(name, type) { } function map(data) { - data = data + "" === data + data = typeof data === STRING ? JSON.parse(data) // Accept JSON string : data; // or object/array var l, prop, childOb, parentRef, @@ -1281,7 +1282,7 @@ function compileViewModel(name, type) { } function merge(data, parent, parentRef) { - data = data + "" === data + data = typeof data === STRING ? JSON.parse(data) // Accept JSON string : data; // or object/array @@ -1304,7 +1305,7 @@ function compileViewModel(name, type) { mod = model[j]; if (id) { - assigned[j] = found = id + "" === id + assigned[j] = found = typeof id === STRING ? (ob[id] && (getterNames[id] ? mod[id]() : mod[id]) === ob[id]) : id(mod, ob); } @@ -1362,7 +1363,7 @@ function compileViewModel(name, type) { for (; k < getterCount; k++) { prop = getters[k]; getterType = undefined; - if (prop + "" !== prop) { + if (typeof prop !== STRING) { getterType = prop; prop = getterType.getter; } @@ -1503,7 +1504,7 @@ function registerStore(storeName, storeSettings) { return item || $views; } // Adding a single unnamed item to the store - if (name && "" + name !== name) { // name must be a string + if (name && typeof name !== STRING) { // name must be a string parentTmpl = item; item = name; name = undefined; @@ -2035,7 +2036,7 @@ function tmplFn(markup, tmpl, isLinkExpr, convertBack, hasElse) { pushprecedingContent(markup.length); if (loc = astTop[astTop.length - 1]) { - blockTagCheck("" + loc !== loc && (+loc[10] === loc[10]) && loc[0]); + blockTagCheck(typeof loc !== STRING && (+loc[10] === loc[10]) && loc[0]); } // result = tmplFnsCache[markup] = buildCode(astTop, tmpl); // } @@ -2377,7 +2378,7 @@ function buildCode(ast, tmpl, isLinkExpr) { tmplOptions = {}, l = ast.length; - if ("" + tmpl === tmpl) { + if (typeof tmpl === STRING) { tmplName = isLinkExpr ? 'data-link="' + tmpl.replace(rNewLine, " ").slice(1, -1) + '"' : tmpl; tmpl = 0; } else { @@ -2396,7 +2397,7 @@ function buildCode(ast, tmpl, isLinkExpr) { node = ast[i]; // Add newline for each callout to t() c() etc. and each markup string - if ("" + node === node) { + if (typeof node === STRING) { // a markup string to be inserted code += '+"' + node + '"'; } else { @@ -2622,11 +2623,11 @@ function getTargetSorted(value, tagCtx) { if (!$isArray(value)) { return value; } - if (directSort || sort && "" + sort === sort) { + if (directSort || sort && typeof sort === STRING) { // Temporary mapped array holds objects with index and sort-value mapped = value.map(function(item, i) { item = directSort ? item : getPathObject(item, sort); - return {i: i, v: "" + item === item ? item.toLowerCase() : item}; + return {i: i, v: typeof item === STRING ? item.toLowerCase() : item}; }); // Sort mapped array mapped.sort(function(a, b) { @@ -2725,12 +2726,12 @@ function htmlEncode(text) { function dataEncode(text) { // Encode just < > and & - intended for 'safe data' along with {{:}} rather than {{>}} - return "" + text === text ? text.replace(rDataEncode, getCharEntity) : text; + return typeof text === STRING ? text.replace(rDataEncode, getCharEntity) : text; } function dataUnencode(text) { // Unencode just < > and & - intended for 'safe data' along with {{:}} rather than {{>}} - return "" + text === text ? text.replace(rDataUnencode, getCharFromEntity) : text; + return typeof text === STRING ? text.replace(rDataUnencode, getCharFromEntity) : text; } //========================== Initialize ========================== @@ -2801,7 +2802,7 @@ $viewsSettings = $views.settings; : ( $subSettings._clFns && $subSettings._clFns(), // Clear linkExprStore (cached compiled expressions), since debugMode setting affects compilation for expressions $subSettings.debugMode = debugMode, - $subSettings.onError = debugMode + "" === debugMode + $subSettings.onError = typeof debugMode === STRING ? function() { return debugMode; } : $isFunction(debugMode) ? debugMode diff --git a/jsrender.js b/jsrender.js index 501f1f9..1f0b1bd 100644 --- a/jsrender.js +++ b/jsrender.js @@ -1,4 +1,4 @@ -/*! JsRender v1.0.11: http://jsviews.com/#jsrender */ +/*! JsRender v1.0.12: http://jsviews.com/#jsrender */ /*! **VERSION FOR WEB** (For NODE.JS see http://jsviews.com/download/jsrender-node.js) */ /* * Best-of-breed templating in browser or on Node.js. @@ -44,7 +44,7 @@ var setGlobals = $ === false; // Only set globals if script block in browser (no $ = $ && $.fn ? $ : global.jQuery; // $ is jQuery passed in by CommonJS loader (Browserify), or global jQuery. -var versionNumber = "v1.0.11", +var versionNumber = "v1.0.12", jsvStoreName, rTag, rTmplString, topView, $views, $expando, _ocp = "_ocp", // Observable contextual parameter @@ -83,6 +83,7 @@ var versionNumber = "v1.0.11", lt: "<" }, HTML = "html", + STRING = "string", OBJECT = "object", tmplAttr = "data-jsv-tmpl", jsvTmpl = "jsvTmpl", @@ -590,7 +591,7 @@ function convertArgs(tagElse, bound) { // tag.cvtArgs() or tag.cvtArgs(tagElse?, bindFrom = tag.bindFrom; args = tagCtx.args; - if ((converter = tag.convert) && "" + converter === converter) { + if ((converter = tag.convert) && typeof converter === STRING) { converter = converter === "true" ? undefined : (tagCtx.view.getRsc("converters", converter) || error("Unknown converter: '" + converter + "'")); @@ -653,7 +654,7 @@ function convertBoundArgs(tagElse) { // tag.bndArgs() function getResource(resourceType, itemName) { var res, store, view = this; - if ("" + itemName === itemName) { + if (typeof itemName === STRING) { while ((res === undefined) && view) { store = view.tmpl && view.tmpl[resourceType]; res = store && store[itemName]; @@ -1052,13 +1053,13 @@ function compileTag(name, tagDef, parentTmpl) { depends: tagDef.depends, render: tagDef }; - } else if ("" + tagDef === tagDef) { + } else if (typeof tagDef === STRING) { tagDef = {template: tagDef}; } if (baseTag = tagDef.baseTag) { tagDef.flow = !!tagDef.flow; // Set flow property, so defaults to false even if baseTag has flow=true - baseTag = "" + baseTag === baseTag + baseTag = typeof baseTag === STRING ? (parentTmpl && parentTmpl.tags[baseTag] || $tags[baseTag]) : baseTag; if (!baseTag) { @@ -1075,7 +1076,7 @@ function compileTag(name, tagDef, parentTmpl) { // Tag declared as object, used as the prototype for tag instantiation (control/presenter) if ((tmpl = compiledDef.template) !== undefined) { - compiledDef.template = "" + tmpl === tmpl ? ($templates[tmpl] || $templates(tmpl)) : tmpl; + compiledDef.template = typeof tmpl === STRING ? ($templates[tmpl] || $templates(tmpl)) : tmpl; } (Tag.prototype = compiledDef).constructor = compiledDef._ctr = Tag; @@ -1103,7 +1104,7 @@ function compileTmpl(name, tmpl, parentTmpl, options) { // If value is of type string - treat as selector, or name of compiled template // Return the template object, if already compiled, or the markup string var currentName, tmpl; - if (("" + value === value) || value.nodeType > 0 && (elem = value)) { + if ((typeof value === STRING) || value.nodeType > 0 && (elem = value)) { if (!elem) { if (/^\.?\/[^\\:*?"<>]*$/.test(value)) { // value="./some/file.html" (or "/some/file.html") @@ -1267,7 +1268,7 @@ function compileViewModel(name, type) { for (; j < getterCount; j++) { prop = getters[j]; getterType = undefined; - if (prop + "" !== prop) { + if (typeof prop !== STRING) { getterType = prop; prop = getterType.getter; parentRef = getterType.parentRef; @@ -1280,7 +1281,7 @@ function compileViewModel(name, type) { } function map(data) { - data = data + "" === data + data = typeof data === STRING ? JSON.parse(data) // Accept JSON string : data; // or object/array var l, prop, childOb, parentRef, @@ -1333,7 +1334,7 @@ function compileViewModel(name, type) { } function merge(data, parent, parentRef) { - data = data + "" === data + data = typeof data === STRING ? JSON.parse(data) // Accept JSON string : data; // or object/array @@ -1356,7 +1357,7 @@ function compileViewModel(name, type) { mod = model[j]; if (id) { - assigned[j] = found = id + "" === id + assigned[j] = found = typeof id === STRING ? (ob[id] && (getterNames[id] ? mod[id]() : mod[id]) === ob[id]) : id(mod, ob); } @@ -1414,7 +1415,7 @@ function compileViewModel(name, type) { for (; k < getterCount; k++) { prop = getters[k]; getterType = undefined; - if (prop + "" !== prop) { + if (typeof prop !== STRING) { getterType = prop; prop = getterType.getter; } @@ -1555,7 +1556,7 @@ function registerStore(storeName, storeSettings) { return item || $views; } // Adding a single unnamed item to the store - if (name && "" + name !== name) { // name must be a string + if (name && typeof name !== STRING) { // name must be a string parentTmpl = item; item = name; name = undefined; @@ -2087,7 +2088,7 @@ function tmplFn(markup, tmpl, isLinkExpr, convertBack, hasElse) { pushprecedingContent(markup.length); if (loc = astTop[astTop.length - 1]) { - blockTagCheck("" + loc !== loc && (+loc[10] === loc[10]) && loc[0]); + blockTagCheck(typeof loc !== STRING && (+loc[10] === loc[10]) && loc[0]); } // result = tmplFnsCache[markup] = buildCode(astTop, tmpl); // } @@ -2429,7 +2430,7 @@ function buildCode(ast, tmpl, isLinkExpr) { tmplOptions = {}, l = ast.length; - if ("" + tmpl === tmpl) { + if (typeof tmpl === STRING) { tmplName = isLinkExpr ? 'data-link="' + tmpl.replace(rNewLine, " ").slice(1, -1) + '"' : tmpl; tmpl = 0; } else { @@ -2448,7 +2449,7 @@ function buildCode(ast, tmpl, isLinkExpr) { node = ast[i]; // Add newline for each callout to t() c() etc. and each markup string - if ("" + node === node) { + if (typeof node === STRING) { // a markup string to be inserted code += '+"' + node + '"'; } else { @@ -2668,11 +2669,11 @@ function getTargetSorted(value, tagCtx) { if (!$isArray(value)) { return value; } - if (directSort || sort && "" + sort === sort) { + if (directSort || sort && typeof sort === STRING) { // Temporary mapped array holds objects with index and sort-value mapped = value.map(function(item, i) { item = directSort ? item : getPathObject(item, sort); - return {i: i, v: "" + item === item ? item.toLowerCase() : item}; + return {i: i, v: typeof item === STRING ? item.toLowerCase() : item}; }); // Sort mapped array mapped.sort(function(a, b) { @@ -2771,12 +2772,12 @@ function htmlEncode(text) { function dataEncode(text) { // Encode just < > and & - intended for 'safe data' along with {{:}} rather than {{>}} - return "" + text === text ? text.replace(rDataEncode, getCharEntity) : text; + return typeof text === STRING ? text.replace(rDataEncode, getCharEntity) : text; } function dataUnencode(text) { // Unencode just < > and & - intended for 'safe data' along with {{:}} rather than {{>}} - return "" + text === text ? text.replace(rDataUnencode, getCharFromEntity) : text; + return typeof text === STRING ? text.replace(rDataUnencode, getCharFromEntity) : text; } //========================== Initialize ========================== @@ -2880,7 +2881,7 @@ if (!(jsr || $ && $.render)) { : ( $subSettings._clFns && $subSettings._clFns(), // Clear linkExprStore (cached compiled expressions), since debugMode setting affects compilation for expressions $subSettings.debugMode = debugMode, - $subSettings.onError = debugMode + "" === debugMode + $subSettings.onError = typeof debugMode === STRING ? function() { return debugMode; } : $isFunction(debugMode) ? debugMode diff --git a/jsrender.min.js b/jsrender.min.js index be2c969..98b8414 100644 --- a/jsrender.min.js +++ b/jsrender.min.js @@ -1,4 +1,4 @@ -/*! JsRender v1.0.11: http://jsviews.com/#jsrender */ +/*! JsRender v1.0.12: http://jsviews.com/#jsrender */ /*! **VERSION FOR WEB** (For NODE.JS see http://jsviews.com/download/jsrender-node.js) */ -!function(t,e){var n=e.jQuery;"object"==typeof exports?module.exports=n?t(e,n):function(n){if(n&&!n.fn)throw"Provide jQuery or null";return t(e,n)}:"function"==typeof define&&define.amd?define(function(){return t(e)}):t(e,!1)}(function(t,e){"use strict";function n(t,e){return function(){var n,r=this,i=r.base;return r.base=t,n=e.apply(r,arguments),r.base=i,n}}function r(t,e){return st(e)&&(e=n(t?t._d?t:n(a,t):a,e),e._d=(t&&t._d||0)+1),e}function i(t,e){var n,i=e.props;for(n in i)!Vt.test(n)||t[n]&&t[n].fix||(t[n]="convert"!==n?r(t.constructor.prototype[n],i[n]):i[n])}function o(t){return t}function a(){return""}function s(t){try{throw console.log("JsRender dbg breakpoint: "+t),"dbg breakpoint"}catch(e){}return this.base?this.baseApply(arguments):t}function l(t){this.name=(e.link?"JsViews":"JsRender")+" Error",this.message=t||this.name}function d(t,e){if(t){for(var n in e)t[n]=e[n];return t}}function c(t,e,n){return t?lt(t)?c.apply(ot,t):(wt=n?n[0]:wt,/^(\W|_){5}$/.test(t+e+wt)||S("Invalid delimiters"),mt=t[0],_t=t[1],xt=e[0],bt=e[1],gt.delimiters=[mt+_t,xt+bt,wt],t="\\"+mt+"(\\"+wt+")?\\"+_t,e="\\"+xt+"\\"+bt,rt="(?:(\\w+(?=[\\/\\s\\"+xt+"]))|(\\w+)?(:)|(>)|(\\*))\\s*((?:[^\\"+xt+"]|\\"+xt+"(?!\\"+bt+"))*?)",ft.rTag="(?:"+rt+")",rt=new RegExp("(?:"+t+rt+"(\\/)?|\\"+mt+"(\\"+wt+")?\\"+_t+"(?:(?:\\/(\\w+))\\s*|!--[\\s\\S]*?--))"+e,"g"),ft.rTmpl=new RegExp("^\\s|\\s$|<.*>|([^\\\\]|^)[{}]|"+t+".*"+e),ht):gt.delimiters}function p(t,e){e||t===!0||(e=t,t=void 0);var n,r,i,o,a=this,s="root"===e;if(t){if(o=e&&a.type===e&&a,!o)if(n=a.views,a._.useKey){for(r in n)if(o=e?n[r].get(t,e):n[r])break}else for(r=0,i=n.length;!o&&r1,v=f.ctx;if(n){if(f._||(c=f.index,f=f.tag),p=f,v&&v.hasOwnProperty(n)||(v=pt).hasOwnProperty(n)){if(s=v[n],"tag"===n||"tagCtx"===n||"root"===n||"parentTags"===n)return s}else v=void 0;if((!Ct&&f.tagCtx||f.linked)&&(s&&s._cxp||(f=f.tagCtx||st(s)?f:(f=f.scope||f,!f.isTop&&f.ctx.tag||f),void 0!==s&&f.tagCtx&&(f=f.tagCtx.view.scope),v=f._ocps,s=v&&v.hasOwnProperty(n)&&v[n]||s,s&&s._cxp||!i&&!g||((v||(f._ocps=f._ocps||{}))[n]=s=[{_ocp:s,_vw:p,_key:n}],s._cxp={path:jt,ind:0,updateValue:function(t,n){return e.observable(s[0]).setProperty(jt,t),this}})),l=s&&s._cxp)){if(arguments.length>2)return a=s[1]?ft._ceo(s[1].deps):[jt],a.unshift(s[0]),a._cxp=l,a;if(c=l.tagElse,u=s[1]?l.tag&&l.tag.cvtArgs?l.tag.cvtArgs(c,1)[l.ind]:s[1](s[0].data,s[0],ft):s[0]._ocp,g)return ft._ucp(n,r,f,l),f;s=u}return s&&st(s)&&(o=function(){return s.apply(this&&this!==t?this:p,arguments)},d(o,s)),o||s}}function h(t){return t&&(t.fn?t:this.getRsc("templates",t)||dt(t))}function m(t,e,n,r){var o,a,s,l,c,p="number"==typeof n&&e.tmpl.bnds[n-1];if(void 0===r&&p&&p._lr&&(r=""),void 0!==r?n=r={props:{},args:[r]}:p&&(n=p(e.data,e,ft)),p=p._bd&&p,t||p){if(a=e._lc,o=a&&a.tag,n.view=e,!o){if(o=d(new ft._tg,{_:{bnd:p,unlinked:!0,lt:n.lt},inline:!a,tagName:":",convert:t,onArrayChange:!0,flow:!0,tagCtx:n,tagCtxs:[n],_is:"tag"}),l=n.args.length,l>1)for(c=o.bindTo=[];l--;)c.unshift(l);a&&(a.tag=o,o.linkCtx=a),n.ctx=Q(n.ctx,(a?a.view:e).ctx),i(o,n)}o._er=r&&s,o.ctx=n.ctx||o.ctx||{},n.ctx=void 0,s=o.cvtArgs()[0],o._er=r&&s}else s=n.args[0];return s=p&&e._.onRender?e._.onRender(s,e,o):s,void 0!=s?s:""}function _(t,e){var n,r,i,o,a,s,l,d=this;if(d.tagName){if(s=d,d=(s.tagCtxs||[d])[t||0],!d)return}else s=d.tag;if(a=s.bindFrom,o=d.args,(l=s.convert)&&""+l===l&&(l="true"===l?void 0:d.view.getRsc("converters",l)||S("Unknown converter: '"+l+"'")),l&&!e&&(o=o.slice()),a){for(i=[],n=a.length;n--;)r=a[n],i.unshift(x(d,r));e&&(o=i)}if(l){if(l=l.apply(s,i||o),void 0===l)return o;if(a=a||[0],n=a.length,lt(l)&&(l.arg0===!1||1!==n&&l.length===n&&!l.arg0)||(l=[l],a=[0],n=1),e)o=l;else for(;n--;)r=a[n],+r===r&&(o[r]=l[n])}return o}function x(t,e){return t=t[+e===e?"args":"props"],t&&t[e]}function b(t){return this.cvtArgs(t,1)}function w(t,e){var n,r,i=this;if(""+e===e){for(;void 0===n&&i;)r=i.tmpl&&i.tmpl[t],n=r&&r[e],i=i.parent;return n||ot[t][e]}}function y(t,e,n,r,o,a){function s(t){var e=l[t];if(void 0!==e)for(e=lt(e)?e:[e],h=e.length;h--;)q=e[h],isNaN(parseInt(q))||(e[h]=parseInt(q));return e||[0]}e=e||it;var l,d,c,p,u,f,g,h,m,w,y,C,k,j,T,A,P,F,N,R,M,$,V,I,D,q,U,K,J,B,L=0,H="",W=e._lc||!1,Z=e.ctx,z=n||e.tmpl,G="number"==typeof r&&e.tmpl.bnds[r-1];for("tag"===t._is?(l=t,t=l.tagName,r=l.tagCtxs,c=l.template):(d=e.getRsc("tags",t)||S("Unknown tag: {{"+t+"}} "),c=d.template),void 0===a&&G&&(G._lr=d.lateRender&&G._lr!==!1||G._lr)&&(a=""),void 0!==a?(H+=a,r=a=[{props:{},args:[],params:{props:{}}}]):G&&(r=G(e.data,e,ft)),g=r.length;L0&&(a=n)){if(!a)if(/^\.?\/[^\\:*?"<>]*$/.test(n))(s=dt[t=t||n])?n=s:a=document.getElementById(n);else if("#"===n.charAt(0))a=document.getElementById(n.slice(1));else if(e.fn&&!ft.rTmpl.test(n))try{a=e(n,document)[0]}catch(l){}a&&("SCRIPT"!==a.tagName&&S(n+": Use script block, not "+a.tagName),i?n=a.innerHTML:(o=a.getAttribute(Lt),o&&(o!==Qt?(n=dt[o],delete dt[o]):e.fn&&(n=e.data(a)[Qt])),o&&n||(t=t||(e.fn?Qt:n),n=A(t,a.innerHTML,r,i)),n.tmplName=t=t||o,t!==Qt&&(dt[t]=n),a.setAttribute(Lt,t),e.fn&&e.data(a,Qt,n))),a=void 0}else n.fn||(n=void 0);return n}var a,s,l=n=n||"";if(ft._html=ct.html,0===i&&(i=void 0,l=o(l)),i=i||(n.markup?n.bnds?d({},n):n:{}),i.tmplName=i.tmplName||t||"unnamed",r&&(i._parentTmpl=r),!l&&n.markup&&(l=o(n.markup))&&l.fn&&(l=l.markup),void 0!==l)return l.render||n.render?l.tmpls&&(s=l):(n=R(l,i),q(l.replace(Pt,"\\$&"),n)),s||(s=d(function(){return s.render.apply(s,arguments)},n),k(s)),s}function P(t,e){return st(t)?t.call(e):t}function F(t,e,n){Object.defineProperty(t,e,{value:n,configurable:!0})}function N(t,n){function r(t){c.apply(this,t)}function i(){return new r(arguments)}function o(t,e){for(var n,r,i,o,a,s=0;sY-(Q||0)){if(Q=e.trim(B.slice(Q,Y+r.length)),H=s||g[m-1].bd,W=H[H.length-1],W&&W.prm){for(;W.sb&&W.sb.prm;)W=W.sb;Z=W.sb={path:W.sb,bnd:W.bnd}}else H.push(Z={path:H.pop()});W&&W.sb===Z&&(k[m]=k[m-1].slice(W._cpPthSt)+k[m],k[m-1]=k[m-1].slice(0,W._cpPthSt)),Z._cpPthSt=C[m-1],Z._cpKey=Q,k[m]+=B.slice(j,J),j=J,Z._cpfn=Wt[Q]=Wt[Q]||new Function("data,view,j","//"+Q+"\nvar v;\nreturn ((v="+k[m]+("]"===S?")]":S)+")!=null?v:null);"),k[m-1]+=w[h]&&vt.cache?'view.getCache("'+Q.replace(Pt,"\\$&")+'"':k[m],Z.prm=f.bd,Z.bnd=Z.bnd||Z.path&&Z.path.indexOf("^")>=0}k[m]=""}"["===$&&($="[j._sq("),"["===d&&(d="[j._sq(")}return X=p?(p=!O,p?r:E+'"'):c?(c=!I,c?r:E+'"'):(d?(b[++h]=!0,_[h]=0,u&&(y[m++]=Y++,f=g[m]={bd:[]},k[m]="",C[m]=1),d):"")+(K?h?"":(v=B.slice(v,Y),(a?(a=l=s=!1,"\b"):"\b,")+v+(v=Y+r.length,u&&n.push(f.bd=[]),"\b")):N?(m&&D(t),u&&n.pop(),a="_"+A,l=T,v=Y+r.length,u&&(u=f.bd=n[a]=[],u.skp=!T),A+":"):A?A.split("^").join(".").replace(ft.rPath,L)+($||P):P?P:S?"]"===S?")]":")":V?(w[h]||D(t),","):o?"":(p=O,c=I,'"')),p||c||S&&(w[h]=!1,h--),u&&(p||c||(S&&(b[h+1]&&(f=g[--m],b[h+1]=!1),x=_[h+1]),$&&(_[h+1]=k[m].length+(d?1:0),(A||S)&&(f=g[++m]={bd:[]},b[h+1]=!0))),k[m]=(k[m]||"")+B.slice(j,J),j=J+r.length,p||c||((G=d&&b[h+1])&&(k[m-1]+=d,C[m-1]++),"("===$&&z&&!Z&&(k[m]=k[m-1].slice(x)+k[m],k[m-1]=k[m-1].slice(0,x))),k[m]+=G?X.slice(1):X),p||c||!$||(h++,A&&"("===$&&(w[h]=!0)),p||c||!U||(u&&(k[m]+=$),X+=$),X}var a,s,l,d,c,p,u=n&&n[0],f={bd:u},g={0:f},v=0,h=0,m=0,_={},x=0,b={},w={},y={},C={0:0},k={0:""},j=0;return"@"===t[0]&&(t=t.replace(Dt,".")),d=(t+(r?" ":"")).replace(ft.rPrm,o),u&&(d=k[0]),!h&&d||D(t)}function L(t,e,n){var r,i,o,a,s,l,d,c,p,u,f,g,v,h,m,_,x,b,w,y,C,k,j,T,A,P,F,N,M,$,V,E,O,I=0,S=vt.useViews||e.useViews||e.tags||e.templates||e.helpers||e.converters,q="",K={},B=t.length;for(""+e===e?(b=n?'data-link="'+e.replace(Tt," ").slice(1,-1)+'"':e,e=0):(b=e.tmplName||"unnamed",e.allowCode&&(K.allowCode=!0),e.debug&&(K.debug=!0),f=e.bnds,x=e.tmpls),r=0;r":a+o):(C&&(w=R(k,K),w.tmplName=b+"/"+o,w.useViews=w.useViews||S,L(C,w),S=w.useViews,x.push(w)),A||(y=o,S=S||o&&(!ut[o]||!ut[o].flow),T=q,q=""),j=t[r+1],j=j&&"else"===j[0]),M=N?";\ntry{\nret+=":"\n+",h="",m="",P&&(g||$||a&&a!==Jt||V)){if(F=new Function("data,view,j","// "+b+" "+ ++I+" "+o+E+"{"+s+"};"+O),F._er=N,F._tag=o,F._bd=!!g,F._lr=V,n)return F;U(F,g),_='c("'+a+'",view,',u=!0,h=_+I+",",m=")"}if(q+=P?(n?(N?"try{\n":"")+"return ":M)+(u?(u=void 0,S=p=!0,_+(F?(f[I-1]=F,I):"{"+s+"}")+")"):">"===o?(d=!0,"h("+v[0]+")"):(c=!0,"((v="+v[0]+")!=null?v:"+(n?"null)":'"")'))):(l=!0,"\n{view:view,content:false,tmpl:"+(C?x.length:"false")+","+s+"},"),y&&!j){if(q="["+q.slice(0,-1)+"]",_='t("'+y+'",view,this,',n||g){if(q=new Function("data,view,j"," // "+b+" "+I+" "+y+E+q+O),q._er=N,q._tag=y,g&&U(f[I-1]=q,g),q._lr=V,n)return q;h=_+I+",undefined,",m=")"}q=T+M+_+(g&&I||q)+")",g=0,y=0}N&&!j&&(S=!0,q+=";\n}catch(e){ret"+(n?"urn ":"+=")+h+"j._err(e,view,"+N+")"+m+";}"+(n?"":"\nret=ret"))}q="// "+b+(K.debug?"\ndebugger;":"")+"\nvar v"+(l?",t=j._tag":"")+(p?",c=j._cnvt":"")+(d?",h=j._html":"")+(n?(i[8]?", ob":"")+";\n":',ret=""')+q+(n?"\n":";\nreturn ret;");try{q=new Function("data,view,j",q)}catch(Q){D("Compiled template code:\n\n"+q+'\n: "'+(Q.message||Q)+'"')}return e&&(e.fn=q,e.useViews=!!S),q}function Q(t,e){return t&&t!==e?e?d(d({},e),t):t:e&&d({},e)}function H(t,n){var r,i,o=n.map,a=o&&o.propsArr;if(!a){if(a=[],typeof t===Bt||st(t))for(r in t)i=t[r],r===at||!t.hasOwnProperty(r)||n.props.noFunctions&&e.isFunction(i)||a.push({key:r,prop:i});o&&(o.propsArr=o.options&&a)}return W(a,n)}function W(t,n){var r,i,o,a=n.tag,s=n.props,l=n.params.props,d=s.filter,c=s.sort,p=c===!0,u=parseInt(s.step),f=s.reverse?-1:1;if(!lt(t))return t;if(p||c&&""+c===c?(r=t.map(function(t,e){return t=p?t:g(t,c),{i:e,v:""+t===t?t.toLowerCase():t}}),r.sort(function(t,e){return t.v>e.v?f:t.vt.length?t.length:+o,t=t.slice(i,o)),u>1){for(i=0,o=t.length,r=[];i\s]/,Mt=/[\x00`><"'&=]/g,$t=/[\x00`><\"'&=]/,Vt=/^on[A-Z]|^convert(Back)?$/,Et=/^\#\d+_`[\s\S]*\/\d+_`$/,Ot=Mt,It=/[&<>]/g,St=/&(amp|gt|lt);/g,Dt=/\[['"]?|['"]?\]/g,qt=0,Ut={"&":"&","<":"<",">":">","\0":"�","'":"'",'"':""","`":"`","=":"="},Kt={amp:"&",gt:">",lt:"<"},Jt="html",Bt="object",Lt="data-jsv-tmpl",Qt="jsvTmpl",Ht="For #index in nested block use #getIndex().",Wt={},Zt={},zt=t.jsrender,Gt=zt&&e&&!e.render,Xt={template:{compile:A},tag:{compile:j},viewModel:{compile:N},helper:{},converter:{}};if(ot={jsviews:kt,sub:{rPath:/^(!*?)(?:null|true|false|\d[\d.]*|([\w$]+|\.|~([\w$]+)|#(view|([\w$]+))?)([\w$.^]*?)(?:[.[^]([\w$]+)\]?)?)$/g,rPrm:/(\()(?=\s*\()|(?:([([])\s*)?(?:(\^?)(~?[\w$.^]+)?\s*((\+\+|--)|\+|-|~(?![\w$])|&&|\|\||===|!==|==|!=|<=|>=|[<>%*:?\/]|(=))\s*|(!*?(@)?[#~]?[\w$.^]+)([([])?)|(,\s*)|(?:(\()\s*)?\\?(?:(')|("))|(?:\s*(([)\]])(?=[.^]|\s*$|[^([])|[)\]])([([]?))|(\s+)/g,View:C,Err:l,tmplFn:q,parse:B,extend:d,extendCtx:Q,syntaxErr:D,onStore:{template:function(t,e){null===e?delete Zt[t]:t&&(Zt[t]=e)}},addSetting:$,settings:{allowCode:!1},advSet:a,_thp:i,_gm:r,_tg:function(){},_cnvt:m,_tag:y,_er:S,_err:I,_cp:o,_sq:function(t){return"constructor"===t&&D(""),t}},settings:{delimiters:c,advanced:function(t){return t?(d(vt,t),ft.advSet(),ht):vt}},map:V},(l.prototype=new Error).constructor=l,u.depends=function(){return[this.get("item"),"index"]},f.depends="index",C.prototype={get:p,getIndex:f,ctxPrm:v,getRsc:w,_getTmpl:h,_getOb:g,getCache:function(t){return gt._cchCt>this.cache._ct&&(this.cache={_ct:gt._cchCt}),void 0!==this.cache[t]?this.cache[t]:this.cache[t]=Wt[t](this.data,this,ft)},_is:"view"},ft=ot.sub,ht=ot.settings,!(zt||e&&e.render)){for(nt in Xt)M(nt,Xt[nt]);if(ct=ot.converters,pt=ot.helpers,ut=ot.tags,ft._tg.prototype={baseApply:T,cvtArgs:_,bndArgs:b,ctxPrm:v},it=ft.topView=new C,e){if(e.fn.render=Z,at=e.expando,e.observable){if(kt!==(kt=e.views.jsviews))throw"jquery.observable.js requires jsrender.js "+kt;d(ft,e.views.sub),ot.map=e.views.map}}else e={},et&&(t.jsrender=e),e.renderFile=e.__express=e.compile=function(){throw"Node.js: use npm jsrender, or jsrender-node.js"},e.isFunction=function(t){return"function"==typeof t},e.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},ft._jq=function(t){t!==e&&(d(t,e),e=t,e.fn.render=Z,delete e.jsrender,at=e.expando)},e.jsrender=kt;gt=ft.settings,gt.allowCode=!1,st=e.isFunction,e.render=Zt,e.views=ot,e.templates=dt=ot.templates;for(yt in gt)$(yt);(ht.debugMode=function(t){return void 0===t?gt.debugMode:(gt._clFns&>._clFns(),gt.debugMode=t,gt.onError=t+""===t?function(){return t}:st(t)?t:void 0,ht)})(!1),vt=gt.advanced={cache:!0,useViews:!1,_jsv:!1},ut({"if":{render:function(t){var e=this,n=e.tagCtx,r=e.rendering.done||!t&&(n.args.length||!n.index)?"":(e.rendering.done=!0,void(e.selected=n.index));return r},contentCtx:!0,flow:!0},"for":{sortDataMap:V(W),init:function(t,e){this.setDataMap(this.tagCtxs)},render:function(t){var e,n,r,i,o,a=this,s=a.tagCtx,l=s.argDefault===!1,d=s.props,c=l||s.args.length,p="",u=0;if(!a.rendering.done){if(e=c?t:s.view.data,l)for(l=d.reverse?"unshift":"push",i=+d.end,o=+d.step||1,e=[],r=+d.start||0;(i-r)*o>0;r+=o)e[l](r);void 0!==e&&(n=lt(e),p+=s.render(e,!c||d.noIteration),u+=n?e.length:1),(a.rendering.done=u)&&(a.selected=s.index)}return p},setDataMap:function(t){for(var e,n,r,i=this,o=t.length;o--;)e=t[o],n=e.props,r=e.params.props,e.argDefault=void 0===n.end||e.args.length>0,n.dataMap=e.argDefault!==!1&<(e.args[0])&&(r.sort||r.start||r.end||r.step||r.filter||r.reverse||n.sort||n.start||n.end||n.step||n.filter||n.reverse)&&i.sortDataMap},flow:!0},props:{baseTag:"for",dataMap:V(H),init:a,flow:!0},include:{flow:!0},"*":{render:o,flow:!0},":*":{render:o,flow:!0},dbg:pt.dbg=ct.dbg=s}),ct({html:X,attr:X,encode:Y,unencode:tt,url:function(t){return void 0!=t?encodeURI(""+t):null===t?t:""}})}return gt=ft.settings,lt=(e||zt).isArray,ht.delimiters("{{","}}","^"),Gt&&zt.views.sub._jq(e),e||zt},window); +!function(t,e){var n=e.jQuery;"object"==typeof exports?module.exports=n?t(e,n):function(n){if(n&&!n.fn)throw"Provide jQuery or null";return t(e,n)}:"function"==typeof define&&define.amd?define(function(){return t(e)}):t(e,!1)}(function(t,e){"use strict";function n(t,e){return function(){var n,r=this,i=r.base;return r.base=t,n=e.apply(r,arguments),r.base=i,n}}function r(t,e){return st(e)&&(e=n(t?t._d?t:n(a,t):a,e),e._d=(t&&t._d||0)+1),e}function i(t,e){var n,i=e.props;for(n in i)!Vt.test(n)||t[n]&&t[n].fix||(t[n]="convert"!==n?r(t.constructor.prototype[n],i[n]):i[n])}function o(t){return t}function a(){return""}function s(t){try{throw console.log("JsRender dbg breakpoint: "+t),"dbg breakpoint"}catch(e){}return this.base?this.baseApply(arguments):t}function p(t){this.name=(e.link?"JsViews":"JsRender")+" Error",this.message=t||this.name}function l(t,e){if(t){for(var n in e)t[n]=e[n];return t}}function d(t,e,n){return t?pt(t)?d.apply(ot,t):(wt=n?n[0]:wt,/^(\W|_){5}$/.test(t+e+wt)||S("Invalid delimiters"),mt=t[0],_t=t[1],xt=e[0],bt=e[1],gt.delimiters=[mt+_t,xt+bt,wt],t="\\"+mt+"(\\"+wt+")?\\"+_t,e="\\"+xt+"\\"+bt,rt="(?:(\\w+(?=[\\/\\s\\"+xt+"]))|(\\w+)?(:)|(>)|(\\*))\\s*((?:[^\\"+xt+"]|\\"+xt+"(?!\\"+bt+"))*?)",ft.rTag="(?:"+rt+")",rt=new RegExp("(?:"+t+rt+"(\\/)?|\\"+mt+"(\\"+wt+")?\\"+_t+"(?:(?:\\/(\\w+))\\s*|!--[\\s\\S]*?--))"+e,"g"),ft.rTmpl=new RegExp("^\\s|\\s$|<.*>|([^\\\\]|^)[{}]|"+t+".*"+e),ht):gt.delimiters}function c(t,e){e||t===!0||(e=t,t=void 0);var n,r,i,o,a=this,s="root"===e;if(t){if(o=e&&a.type===e&&a,!o)if(n=a.views,a._.useKey){for(r in n)if(o=e?n[r].get(t,e):n[r])break}else for(r=0,i=n.length;!o&&r1,v=f.ctx;if(n){if(f._||(d=f.index,f=f.tag),c=f,v&&v.hasOwnProperty(n)||(v=ct).hasOwnProperty(n)){if(s=v[n],"tag"===n||"tagCtx"===n||"root"===n||"parentTags"===n)return s}else v=void 0;if((!Ct&&f.tagCtx||f.linked)&&(s&&s._cxp||(f=f.tagCtx||st(s)?f:(f=f.scope||f,!f.isTop&&f.ctx.tag||f),void 0!==s&&f.tagCtx&&(f=f.tagCtx.view.scope),v=f._ocps,s=v&&v.hasOwnProperty(n)&&v[n]||s,s&&s._cxp||!i&&!g||((v||(f._ocps=f._ocps||{}))[n]=s=[{_ocp:s,_vw:c,_key:n}],s._cxp={path:jt,ind:0,updateValue:function(t,n){return e.observable(s[0]).setProperty(jt,t),this}})),p=s&&s._cxp)){if(arguments.length>2)return a=s[1]?ft._ceo(s[1].deps):[jt],a.unshift(s[0]),a._cxp=p,a;if(d=p.tagElse,u=s[1]?p.tag&&p.tag.cvtArgs?p.tag.cvtArgs(d,1)[p.ind]:s[1](s[0].data,s[0],ft):s[0]._ocp,g)return ft._ucp(n,r,f,p),f;s=u}return s&&st(s)&&(o=function(){return s.apply(this&&this!==t?this:c,arguments)},l(o,s)),o||s}}function h(t){return t&&(t.fn?t:this.getRsc("templates",t)||lt(t))}function m(t,e,n,r){var o,a,s,p,d,c="number"==typeof n&&e.tmpl.bnds[n-1];if(void 0===r&&c&&c._lr&&(r=""),void 0!==r?n=r={props:{},args:[r]}:c&&(n=c(e.data,e,ft)),c=c._bd&&c,t||c){if(a=e._lc,o=a&&a.tag,n.view=e,!o){if(o=l(new ft._tg,{_:{bnd:c,unlinked:!0,lt:n.lt},inline:!a,tagName:":",convert:t,onArrayChange:!0,flow:!0,tagCtx:n,tagCtxs:[n],_is:"tag"}),p=n.args.length,p>1)for(d=o.bindTo=[];p--;)d.unshift(p);a&&(a.tag=o,o.linkCtx=a),n.ctx=Q(n.ctx,(a?a.view:e).ctx),i(o,n)}o._er=r&&s,o.ctx=n.ctx||o.ctx||{},n.ctx=void 0,s=o.cvtArgs()[0],o._er=r&&s}else s=n.args[0];return s=c&&e._.onRender?e._.onRender(s,e,o):s,void 0!=s?s:""}function _(t,e){var n,r,i,o,a,s,p,l=this;if(l.tagName){if(s=l,l=(s.tagCtxs||[l])[t||0],!l)return}else s=l.tag;if(a=s.bindFrom,o=l.args,(p=s.convert)&&typeof p===Bt&&(p="true"===p?void 0:l.view.getRsc("converters",p)||S("Unknown converter: '"+p+"'")),p&&!e&&(o=o.slice()),a){for(i=[],n=a.length;n--;)r=a[n],i.unshift(x(l,r));e&&(o=i)}if(p){if(p=p.apply(s,i||o),void 0===p)return o;if(a=a||[0],n=a.length,pt(p)&&(p.arg0===!1||1!==n&&p.length===n&&!p.arg0)||(p=[p],a=[0],n=1),e)o=p;else for(;n--;)r=a[n],+r===r&&(o[r]=p[n])}return o}function x(t,e){return t=t[+e===e?"args":"props"],t&&t[e]}function b(t){return this.cvtArgs(t,1)}function w(t,e){var n,r,i=this;if(typeof e===Bt){for(;void 0===n&&i;)r=i.tmpl&&i.tmpl[t],n=r&&r[e],i=i.parent;return n||ot[t][e]}}function y(t,e,n,r,o,a){function s(t){var e=p[t];if(void 0!==e)for(e=pt(e)?e:[e],h=e.length;h--;)q=e[h],isNaN(parseInt(q))||(e[h]=parseInt(q));return e||[0]}e=e||it;var p,l,d,c,u,f,g,h,m,w,y,C,k,j,T,A,P,F,N,R,M,$,V,I,D,q,U,K,J,B,L=0,H="",W=e._lc||!1,Z=e.ctx,z=n||e.tmpl,G="number"==typeof r&&e.tmpl.bnds[r-1];for("tag"===t._is?(p=t,t=p.tagName,r=p.tagCtxs,d=p.template):(l=e.getRsc("tags",t)||S("Unknown tag: {{"+t+"}} "),d=l.template),void 0===a&&G&&(G._lr=l.lateRender&&G._lr!==!1||G._lr)&&(a=""),void 0!==a?(H+=a,r=a=[{props:{},args:[],params:{props:{}}}]):G&&(r=G(e.data,e,ft)),g=r.length;L0&&(a=n)){if(!a)if(/^\.?\/[^\\:*?"<>]*$/.test(n))(s=lt[t=t||n])?n=s:a=document.getElementById(n);else if("#"===n.charAt(0))a=document.getElementById(n.slice(1));else if(e.fn&&!ft.rTmpl.test(n))try{a=e(n,document)[0]}catch(p){}a&&("SCRIPT"!==a.tagName&&S(n+": Use script block, not "+a.tagName),i?n=a.innerHTML:(o=a.getAttribute(Qt),o&&(o!==Ht?(n=lt[o],delete lt[o]):e.fn&&(n=e.data(a)[Ht])),o&&n||(t=t||(e.fn?Ht:n),n=A(t,a.innerHTML,r,i)),n.tmplName=t=t||o,t!==Ht&&(lt[t]=n),a.setAttribute(Qt,t),e.fn&&e.data(a,Ht,n))),a=void 0}else n.fn||(n=void 0);return n}var a,s,p=n=n||"";if(ft._html=dt.html,0===i&&(i=void 0,p=o(p)),i=i||(n.markup?n.bnds?l({},n):n:{}),i.tmplName=i.tmplName||t||"unnamed",r&&(i._parentTmpl=r),!p&&n.markup&&(p=o(n.markup))&&p.fn&&(p=p.markup),void 0!==p)return p.render||n.render?p.tmpls&&(s=p):(n=R(p,i),q(p.replace(Pt,"\\$&"),n)),s||(s=l(function(){return s.render.apply(s,arguments)},n),k(s)),s}function P(t,e){return st(t)?t.call(e):t}function F(t,e,n){Object.defineProperty(t,e,{value:n,configurable:!0})}function N(t,n){function r(t){d.apply(this,t)}function i(){return new r(arguments)}function o(t,e){for(var n,r,i,o,a,s=0;sY-(Q||0)){if(Q=e.trim(B.slice(Q,Y+r.length)),H=s||g[m-1].bd,W=H[H.length-1],W&&W.prm){for(;W.sb&&W.sb.prm;)W=W.sb;Z=W.sb={path:W.sb,bnd:W.bnd}}else H.push(Z={path:H.pop()});W&&W.sb===Z&&(k[m]=k[m-1].slice(W._cpPthSt)+k[m],k[m-1]=k[m-1].slice(0,W._cpPthSt)),Z._cpPthSt=C[m-1],Z._cpKey=Q,k[m]+=B.slice(j,J),j=J,Z._cpfn=Zt[Q]=Zt[Q]||new Function("data,view,j","//"+Q+"\nvar v;\nreturn ((v="+k[m]+("]"===S?")]":S)+")!=null?v:null);"),k[m-1]+=w[h]&&vt.cache?'view.getCache("'+Q.replace(Pt,"\\$&")+'"':k[m],Z.prm=f.bd,Z.bnd=Z.bnd||Z.path&&Z.path.indexOf("^")>=0}k[m]=""}"["===$&&($="[j._sq("),"["===l&&(l="[j._sq(")}return X=c?(c=!O,c?r:E+'"'):d?(d=!I,d?r:E+'"'):(l?(b[++h]=!0,_[h]=0,u&&(y[m++]=Y++,f=g[m]={bd:[]},k[m]="",C[m]=1),l):"")+(K?h?"":(v=B.slice(v,Y),(a?(a=p=s=!1,"\b"):"\b,")+v+(v=Y+r.length,u&&n.push(f.bd=[]),"\b")):N?(m&&D(t),u&&n.pop(),a="_"+A,p=T,v=Y+r.length,u&&(u=f.bd=n[a]=[],u.skp=!T),A+":"):A?A.split("^").join(".").replace(ft.rPath,L)+($||P):P?P:S?"]"===S?")]":")":V?(w[h]||D(t),","):o?"":(c=O,d=I,'"')),c||d||S&&(w[h]=!1,h--),u&&(c||d||(S&&(b[h+1]&&(f=g[--m],b[h+1]=!1),x=_[h+1]),$&&(_[h+1]=k[m].length+(l?1:0),(A||S)&&(f=g[++m]={bd:[]},b[h+1]=!0))),k[m]=(k[m]||"")+B.slice(j,J),j=J+r.length,c||d||((G=l&&b[h+1])&&(k[m-1]+=l,C[m-1]++),"("===$&&z&&!Z&&(k[m]=k[m-1].slice(x)+k[m],k[m-1]=k[m-1].slice(0,x))),k[m]+=G?X.slice(1):X),c||d||!$||(h++,A&&"("===$&&(w[h]=!0)),c||d||!U||(u&&(k[m]+=$),X+=$),X}var a,s,p,l,d,c,u=n&&n[0],f={bd:u},g={0:f},v=0,h=0,m=0,_={},x=0,b={},w={},y={},C={0:0},k={0:""},j=0;return"@"===t[0]&&(t=t.replace(Dt,".")),l=(t+(r?" ":"")).replace(ft.rPrm,o),u&&(l=k[0]),!h&&l||D(t)}function L(t,e,n){var r,i,o,a,s,p,l,d,c,u,f,g,v,h,m,_,x,b,w,y,C,k,j,T,A,P,F,N,M,$,V,E,O,I=0,S=vt.useViews||e.useViews||e.tags||e.templates||e.helpers||e.converters,q="",K={},B=t.length;for(typeof e===Bt?(b=n?'data-link="'+e.replace(Tt," ").slice(1,-1)+'"':e,e=0):(b=e.tmplName||"unnamed",e.allowCode&&(K.allowCode=!0),e.debug&&(K.debug=!0),f=e.bnds,x=e.tmpls),r=0;r":a+o):(C&&(w=R(k,K),w.tmplName=b+"/"+o,w.useViews=w.useViews||S,L(C,w),S=w.useViews,x.push(w)),A||(y=o,S=S||o&&(!ut[o]||!ut[o].flow),T=q,q=""),j=t[r+1],j=j&&"else"===j[0]),M=N?";\ntry{\nret+=":"\n+",h="",m="",P&&(g||$||a&&a!==Jt||V)){if(F=new Function("data,view,j","// "+b+" "+ ++I+" "+o+E+"{"+s+"};"+O),F._er=N,F._tag=o,F._bd=!!g,F._lr=V,n)return F;U(F,g),_='c("'+a+'",view,',u=!0,h=_+I+",",m=")"}if(q+=P?(n?(N?"try{\n":"")+"return ":M)+(u?(u=void 0,S=c=!0,_+(F?(f[I-1]=F,I):"{"+s+"}")+")"):">"===o?(l=!0,"h("+v[0]+")"):(d=!0,"((v="+v[0]+")!=null?v:"+(n?"null)":'"")'))):(p=!0,"\n{view:view,content:false,tmpl:"+(C?x.length:"false")+","+s+"},"),y&&!j){if(q="["+q.slice(0,-1)+"]",_='t("'+y+'",view,this,',n||g){if(q=new Function("data,view,j"," // "+b+" "+I+" "+y+E+q+O),q._er=N,q._tag=y,g&&U(f[I-1]=q,g),q._lr=V,n)return q;h=_+I+",undefined,",m=")"}q=T+M+_+(g&&I||q)+")",g=0,y=0}N&&!j&&(S=!0,q+=";\n}catch(e){ret"+(n?"urn ":"+=")+h+"j._err(e,view,"+N+")"+m+";}"+(n?"":"\nret=ret"))}q="// "+b+(K.debug?"\ndebugger;":"")+"\nvar v"+(p?",t=j._tag":"")+(c?",c=j._cnvt":"")+(l?",h=j._html":"")+(n?(i[8]?", ob":"")+";\n":',ret=""')+q+(n?"\n":";\nreturn ret;");try{q=new Function("data,view,j",q)}catch(Q){D("Compiled template code:\n\n"+q+'\n: "'+(Q.message||Q)+'"')}return e&&(e.fn=q,e.useViews=!!S),q}function Q(t,e){return t&&t!==e?e?l(l({},e),t):t:e&&l({},e)}function H(t,n){var r,i,o=n.map,a=o&&o.propsArr;if(!a){if(a=[],typeof t===Lt||st(t))for(r in t)i=t[r],r===at||!t.hasOwnProperty(r)||n.props.noFunctions&&e.isFunction(i)||a.push({key:r,prop:i});o&&(o.propsArr=o.options&&a)}return W(a,n)}function W(t,n){var r,i,o,a=n.tag,s=n.props,p=n.params.props,l=s.filter,d=s.sort,c=d===!0,u=parseInt(s.step),f=s.reverse?-1:1;if(!pt(t))return t;if(c||d&&typeof d===Bt?(r=t.map(function(t,e){return t=c?t:g(t,d),{i:e,v:typeof t===Bt?t.toLowerCase():t}}),r.sort(function(t,e){return t.v>e.v?f:t.vt.length?t.length:+o,t=t.slice(i,o)),u>1){for(i=0,o=t.length,r=[];i\s]/,Mt=/[\x00`><"'&=]/g,$t=/[\x00`><\"'&=]/,Vt=/^on[A-Z]|^convert(Back)?$/,Et=/^\#\d+_`[\s\S]*\/\d+_`$/,Ot=Mt,It=/[&<>]/g,St=/&(amp|gt|lt);/g,Dt=/\[['"]?|['"]?\]/g,qt=0,Ut={"&":"&","<":"<",">":">","\0":"�","'":"'",'"':""","`":"`","=":"="},Kt={amp:"&",gt:">",lt:"<"},Jt="html",Bt="string",Lt="object",Qt="data-jsv-tmpl",Ht="jsvTmpl",Wt="For #index in nested block use #getIndex().",Zt={},zt={},Gt=t.jsrender,Xt=Gt&&e&&!e.render,Yt={template:{compile:A},tag:{compile:j},viewModel:{compile:N},helper:{},converter:{}};if(ot={jsviews:kt,sub:{rPath:/^(!*?)(?:null|true|false|\d[\d.]*|([\w$]+|\.|~([\w$]+)|#(view|([\w$]+))?)([\w$.^]*?)(?:[.[^]([\w$]+)\]?)?)$/g,rPrm:/(\()(?=\s*\()|(?:([([])\s*)?(?:(\^?)(~?[\w$.^]+)?\s*((\+\+|--)|\+|-|~(?![\w$])|&&|\|\||===|!==|==|!=|<=|>=|[<>%*:?\/]|(=))\s*|(!*?(@)?[#~]?[\w$.^]+)([([])?)|(,\s*)|(?:(\()\s*)?\\?(?:(')|("))|(?:\s*(([)\]])(?=[.^]|\s*$|[^([])|[)\]])([([]?))|(\s+)/g,View:C,Err:p,tmplFn:q,parse:B,extend:l,extendCtx:Q,syntaxErr:D,onStore:{template:function(t,e){null===e?delete zt[t]:t&&(zt[t]=e)}},addSetting:$,settings:{allowCode:!1},advSet:a,_thp:i,_gm:r,_tg:function(){},_cnvt:m,_tag:y,_er:S,_err:I,_cp:o,_sq:function(t){return"constructor"===t&&D(""),t}},settings:{delimiters:d,advanced:function(t){return t?(l(vt,t),ft.advSet(),ht):vt}},map:V},(p.prototype=new Error).constructor=p,u.depends=function(){return[this.get("item"),"index"]},f.depends="index",C.prototype={get:c,getIndex:f,ctxPrm:v,getRsc:w,_getTmpl:h,_getOb:g,getCache:function(t){return gt._cchCt>this.cache._ct&&(this.cache={_ct:gt._cchCt}),void 0!==this.cache[t]?this.cache[t]:this.cache[t]=Zt[t](this.data,this,ft)},_is:"view"},ft=ot.sub,ht=ot.settings,!(Gt||e&&e.render)){for(nt in Yt)M(nt,Yt[nt]);if(dt=ot.converters,ct=ot.helpers,ut=ot.tags,ft._tg.prototype={baseApply:T,cvtArgs:_,bndArgs:b,ctxPrm:v},it=ft.topView=new C,e){if(e.fn.render=Z,at=e.expando,e.observable){if(kt!==(kt=e.views.jsviews))throw"jquery.observable.js requires jsrender.js "+kt;l(ft,e.views.sub),ot.map=e.views.map}}else e={},et&&(t.jsrender=e),e.renderFile=e.__express=e.compile=function(){throw"Node.js: use npm jsrender, or jsrender-node.js"},e.isFunction=function(t){return"function"==typeof t},e.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},ft._jq=function(t){t!==e&&(l(t,e),e=t,e.fn.render=Z,delete e.jsrender,at=e.expando)},e.jsrender=kt;gt=ft.settings,gt.allowCode=!1,st=e.isFunction,e.render=zt,e.views=ot,e.templates=lt=ot.templates;for(yt in gt)$(yt);(ht.debugMode=function(t){return void 0===t?gt.debugMode:(gt._clFns&>._clFns(),gt.debugMode=t,gt.onError=typeof t===Bt?function(){return t}:st(t)?t:void 0,ht)})(!1),vt=gt.advanced={cache:!0,useViews:!1,_jsv:!1},ut({"if":{render:function(t){var e=this,n=e.tagCtx,r=e.rendering.done||!t&&(n.args.length||!n.index)?"":(e.rendering.done=!0,void(e.selected=n.index));return r},contentCtx:!0,flow:!0},"for":{sortDataMap:V(W),init:function(t,e){this.setDataMap(this.tagCtxs)},render:function(t){var e,n,r,i,o,a=this,s=a.tagCtx,p=s.argDefault===!1,l=s.props,d=p||s.args.length,c="",u=0;if(!a.rendering.done){if(e=d?t:s.view.data,p)for(p=l.reverse?"unshift":"push",i=+l.end,o=+l.step||1,e=[],r=+l.start||0;(i-r)*o>0;r+=o)e[p](r);void 0!==e&&(n=pt(e),c+=s.render(e,!d||l.noIteration),u+=n?e.length:1),(a.rendering.done=u)&&(a.selected=s.index)}return c},setDataMap:function(t){for(var e,n,r,i=this,o=t.length;o--;)e=t[o],n=e.props,r=e.params.props,e.argDefault=void 0===n.end||e.args.length>0,n.dataMap=e.argDefault!==!1&&pt(e.args[0])&&(r.sort||r.start||r.end||r.step||r.filter||r.reverse||n.sort||n.start||n.end||n.step||n.filter||n.reverse)&&i.sortDataMap},flow:!0},props:{baseTag:"for",dataMap:V(H),init:a,flow:!0},include:{flow:!0},"*":{render:o,flow:!0},":*":{render:o,flow:!0},dbg:ct.dbg=dt.dbg=s}),dt({html:X,attr:X,encode:Y,unencode:tt,url:function(t){return void 0!=t?encodeURI(""+t):null===t?t:""}})}return gt=ft.settings,pt=(e||Gt).isArray,ht.delimiters("{{","}}","^"),Xt&&Gt.views.sub._jq(e),e||Gt},window); //# sourceMappingURL=jsrender.min.js.map diff --git a/jsrender.min.js.map b/jsrender.min.js.map index 6f517a9..0f95aef 100644 --- a/jsrender.min.js.map +++ b/jsrender.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["jsrender.js"],"names":["factory","global","$","jQuery","exports","module","fn","define","amd","getDerivedMethod","baseMethod","method","ret","tag","this","prevBase","base","apply","arguments","getMethod","$isFunction","_d","noop","tagHandlersFromProps","tagCtx","prop","props","rHasHandlers","test","fix","constructor","prototype","retVal","val","dbgBreak","console","log","e","baseApply","JsViewsError","message","name","link","$extend","target","source","$viewsDelimiters","openChars","closeChars","$isArray","$views","linkChar","error","delimOpenChar0","delimOpenChar1","delimCloseChar0","delimCloseChar1","$subSettings","delimiters","rTag","$sub","RegExp","rTmpl","$viewsSettings","getView","inner","type","undefined","views","i","l","found","view","root","_","useKey","get","length","parent","getNestedIndex","index","getIndex","getPathObject","ob","path","ltOb","prevOb","tokens","split","lt","contextParameter","key","value","wrapped","deps","res","obsCtxPrm","tagElse","callView","newRes","storeView","isUpdate","isRenderCall","store","ctx","hasOwnProperty","$helpers","linked","_cxp","scope","isTop","_ocps","_ocp","_vw","_key","ind","updateValue","observable","setProperty","_ceo","unshift","cvtArgs","data","_ucp","getTemplate","tmpl","getRsc","$templates","convertVal","converter","onError","linkCtx","argsLen","bindTo","boundTag","bnds","_lr","args","_bd","_lc","_tg","bnd","unlinked","inline","tagName","convert","onArrayChange","flow","tagCtxs","_is","extendCtx","_er","onRender","convertArgs","bound","boundArgs","bindFrom","slice","argOrProp","arg0","context","convertBoundArgs","getResource","resourceType","itemName","renderTag","parentView","bindToOrBindFrom","bindArray","m","isNaN","parseInt","topView","tagDef","template","tags","attr","parentTag","n","itemRet","tagCtxCtx","ctxPrm","initVal","content","callInit","mapDef","thisMap","bdArgs","tagDataMap","contentCtx","bindFromLength","bindToLength","linkedElement","defaultCtx","parentTmpl","lateRender","params","tmpls","render","renderContent","bndArgs","_getTmpl","init","_ctr","ths","arrVws","dataBoundOnly","dataMap","map","parents","parentTags","rendering","rndr","argDefault","linkedCtxParam","fromIndex","toIndex","_dfAt","noVws","HTML","_cp","cvt","src","unmap","tgt","rWrappedInViewMarker","links","renderWithViews","$converters","html","View","contentTmpl","parentView_","self_","self","isArray","id","viewId","cache","_ct","_cchCt","scp","indexStr","push","splice","compileChildResources","storeName","storeNames","resources","jsvStores","compileTag","Tag","baseTag","compiledDef","depends","$tags","_parentTmpl","compileTmpl","options","lookupTemplate","currentName","nodeType","elem","document","getElementById","charAt","innerHTML","getAttribute","tmplAttr","jsvTmpl","tmplName","setAttribute","compiledTmpl","tmplOrMarkup","_html","markup","tmplObject","tmplFn","replace","rEscapeQuotes","getDefaultVal","defaultVal","call","addParentRef","ref","Object","defineProperty","configurable","compileViewModel","JsvVm","vm","iterate","action","getterType","parentRef","j","getterCount","getters","getter","viewModels","JSON","parse","childOb","arr","merge","viewModel","$expando","getterNames","mod","assigned","newModArr","k","model","$observable","refresh","concat","unmapArray","modelArr","extend","proto","cnstr","privField","set","Function","htmlTag","wrapMap","$subSettingsAdvanced","_wm","rFirstElem","exec","toLowerCase","div","trim","registerStore","storeSettings","theStore","item","compile","thisStore","onStore","OBJECT","getTgt","addSetting","st","Map","baseMap","noIteration","isTopRenderCall","prevData","prevIndex","result","useViews","newView","childView","itemResult","swapContent","outerOnRender","itemVar","newCtx","noLinking","_wrp","nl","syntaxError","helpers","contentView","onRenderError","fallback","Err","isLinkExpr","convertBack","hasElse","pushprecedingContent","shift","loc","substr","rNewLine","blockTagCheck","block","parseTag","all","bind","colon","codeTag","slash","bind2","closeBlock","late","openTagName","isLateOb","pathBindings","ctxProps","paramsArgs","paramsProps","paramsCtxProps","useTrigger","allowCode","rUnescapeQuotes","rTestElseIf","current","substring","stack","pop","parseParams","rBuildHash","onerror","isCtxPrm","keyToken","keyValue","arg","param","hasHandlers","newNode","parsedParam","bindings","astTop","buildCode","setPaths","pathsArr","paths","skp","paramStructure","paramCode","paramVals","parseTokens","lftPrn0","lftPrn","operator","err","eq","path2","prn","comma","lftPrn2","apos","quot","rtPrn","rtPrnDot","prn2","space","full","parsePath","allPath","not","object","helper","viewProperty","pathTokens","leafToken","subPath","binds","named","bindto","_jsvto","bndCtx","bd","theOb","_cpfn","sb","prm","pathStart","fnDp","compiledPathStart","compiledPath","join","expr","newOb","lftPrnFCall","aposed","quoted","bndStack","_cpPthSt","_cpKey","cpFnStore","fnCall","prnDp","indexOf","prnStack","prnInd","paramIndex","boundName","rPath","prnStart","0","rBracketQuote","rPrm","ast","node","hasTag","hasEncoder","getsVal","hasCnvt","useCnvt","tmplBindings","boundOnErrStart","boundOnErrEnd","tagRender","nestedTmpls","nestedTmpl","tagAndElses","nextIsElse","oldCode","isElse","isGetVal","tagCtxFn","tagStart","trigger","retStrOpen","retStrClose","tmplBindingKey","templates","converters","code","tmplOptions","debug","debugMode","_tag","parentContext","getTargetProps","propsArr","noFunctions","isFunction","getTargetSorted","mapped","start","end","propParams","filter","sort","directSort","step","reverse","v","a","b","onFilter","sorted","paged","$fnRender","tmplElem","jquery","getCharEntity","ch","charEntities","charCodeAt","getCharFromEntity","match","token","charsFromEntities","htmlEncode","text","rIsHtml","rHtmlEncode","dataEncode","rDataEncode","dataUnencode","rDataUnencode","setGlobals","jsvStoreName","setting","versionNumber","rAttrEncode","&","<",">","\u0000","'","\"","`","=","amp","gt","$render","jsr","jsrender","jsrToJq","jsviews","sub","syntaxErr","settings","advSet","_thp","_gm","_cnvt","_err","_sq","advanced","Error","_getOb","getCache","expando","renderFile","__express","Array","obj","_jq","jq","_clFns","_jsv","if","done","selected","for","sortDataMap","cloned","setDataMap","range","include","*",":*","dbg","encode","unencode","url","encodeURI","window"],"mappings":";;CAaC,SAASA,EAASC,GAElB,GAAIC,GAAID,EAAOE,MAEQ,iBAAZC,SACVC,OAAOD,QAAUF,EAC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ZA,GAAK0jB,IACT0C","file":"jsrender.min.js","sourcesContent":["/*! JsRender v1.0.11: http://jsviews.com/#jsrender */\n/*! **VERSION FOR WEB** (For NODE.JS see http://jsviews.com/download/jsrender-node.js) */\n/*\n * Best-of-breed templating in browser or on Node.js.\n * Does not require jQuery, or HTML DOM\n * Integrates with JsViews (http://jsviews.com/#jsviews)\n *\n * Copyright 2021, Boris Moore\n * Released under the MIT License.\n */\n\n//jshint -W018, -W041, -W120\n\n(function(factory, global) {\n\t// global var is the this object, which is window when running in the usual browser environment\n\tvar $ = global.jQuery;\n\n\tif (typeof exports === \"object\") { // CommonJS e.g. Browserify\n\t\tmodule.exports = $\n\t\t\t? factory(global, $)\n\t\t\t: function($) { // If no global jQuery, take optional jQuery passed as parameter: require('jsrender')(jQuery)\n\t\t\t\tif ($ && !$.fn) {\n\t\t\t\t\tthrow \"Provide jQuery or null\";\n\t\t\t\t}\n\t\t\t\treturn factory(global, $);\n\t\t\t};\n\t} else if (typeof define === \"function\" && define.amd) { // AMD script loader, e.g. RequireJS\n\t\tdefine(function() {\n\t\t\treturn factory(global);\n\t\t});\n\t} else { // Browser using plain + diff --git a/test/test.min.map.html b/test/test.min.map.html index 3c1519c..a235484 100644 --- a/test/test.min.map.html +++ b/test/test.min.map.html @@ -1,7 +1,7 @@ - + diff --git a/test/unit-tests-amd-scriptloader.html b/test/unit-tests-amd-scriptloader.html index 6b0dc05..b61c313 100644 --- a/test/unit-tests-amd-scriptloader.html +++ b/test/unit-tests-amd-scriptloader.html @@ -3,7 +3,7 @@ - + diff --git a/test/unit-tests-browserify.html b/test/unit-tests-browserify.html index 0014f10..1df5fd1 100644 --- a/test/unit-tests-browserify.html +++ b/test/unit-tests-browserify.html @@ -2,7 +2,7 @@ - + diff --git a/test/unit-tests-jsrender-no-jquery.html b/test/unit-tests-jsrender-no-jquery.html index 8c5f392..5eeccfa 100644 --- a/test/unit-tests-jsrender-no-jquery.html +++ b/test/unit-tests-jsrender-no-jquery.html @@ -5,7 +5,7 @@ - + diff --git a/test/unit-tests-jsrender-with-jquery.html b/test/unit-tests-jsrender-with-jquery.html index b0bfba6..38dcc86 100644 --- a/test/unit-tests-jsrender-with-jquery.html +++ b/test/unit-tests-jsrender-with-jquery.html @@ -3,7 +3,7 @@ - + diff --git a/test/unit-tests/tests-node.js b/test/unit-tests/tests-node.js index 46db903..d84c5eb 100644 --- a/test/unit-tests/tests-node.js +++ b/test/unit-tests/tests-node.js @@ -43,7 +43,7 @@ QUnit.test("jsrender.compile", function(assert) { QUnit.test("jsrender.tags.clientTemplate", function(assert) { jsrender.views.settings.delimiters("<%", "%>"); var tmpl = jsrender.compile( - '\n' + '\n' + '\n' + '<%clientTemplate "./test/templates/outer.html"/%>\n' + '<%clientTemplate "./test/templates/inner.html"/%>\n' @@ -52,7 +52,7 @@ QUnit.test("jsrender.tags.clientTemplate", function(assert) { + ''); var html = tmpl({name: "Jo"}); assert.equal(html, - '\n' + '\n' + '\n' + '\n' + '\n' diff --git a/typescript/jsrender/index.d.ts b/typescript/jsrender/index.d.ts index 3ed0b0c..d7545ae 100644 --- a/typescript/jsrender/index.d.ts +++ b/typescript/jsrender/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for JsRender 1.0 -// Version: "v1.0.11" +// Version: "v1.0.12" // Project: http://www.jsviews.com/#jsrender // Definitions by: Boris Moore // Definitions: https://www.jsviews.com/download/typescript/jsrender/index.d.ts diff --git a/typescript/jsrender/test/tests.html b/typescript/jsrender/test/tests.html index 99d05f2..305cf4d 100644 --- a/typescript/jsrender/test/tests.html +++ b/typescript/jsrender/test/tests.html @@ -4,7 +4,7 @@ body { font-family: 'Helvetica Neue', HelveticaNeue, Helvetica, Arial, sans-serif; font-size: 15px;} code { font-size: 12px; } - +