Skip to content
Snippets Groups Projects
  1. Oct 29, 2004
    • deuce's avatar
      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
  2. Oct 28, 2004
  3. Oct 27, 2004
Loading