-
- Downloads
Add basic templating SSJS thinger... pulls templates from text/html_templates
and supports templated replacements from the template object: %%name%% is replaced with the HTML encoded value of template.name ^^name^^ is replaced with the URI encoded value of template.name @@name@@ is replaced with the value if template.name @@JS:js_expression@@ is replaced with the return value of js_expression (^^ and %% are also supported) <<REPEAT name>> ... @@name:sname@@ ... <<END REPEAT name>> Iterates over the array/object template.name and replaces name:sname with the value of template.name.sname (^^ and %% are also supported)
web/lib/template.ssjs
0 → 100644
Please register or sign in to comment