stringtemplate is a strict separation or "logic-less" template module (still under development) - essentially, the merge()
operation between a document string with "holes" and data for filling this out.
stringtemplate
takes an "eval-less" approach (no Function()
constructors or eval()
statements), due to the arrival of Content Security Policy, a very serious restriction coming to our "modern" browsers that financial, medical, retailing and other security-sensitive entities will embrace increasingly over time.
stringtemplate
supports no formatting or escaping characters, case logic, quiet references, fallbacks for unexpected values, helpers, includes or inheritance. stringtemplate
is not concerned with producing HTML or producing a DOM - its concern is simply producing a new string from a string and some data. The focus is on "simple" transformations.