Skip to content
  • deuce's avatar
    a03c9b9f
    Add basic templating SSJS thinger... pulls templates from text/html_templates · a03c9b9f
    deuce authored
    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)
    a03c9b9f
    Add basic templating SSJS thinger... pulls templates from text/html_templates
    deuce authored
    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)
Loading