A tiny, secure JavaScript micro-templating script.
Tim lets you write simple templates that uses JavaScript's familiar
dot notation. You pass in a JavaScript object that contains all the
relevant strings, and they are then substituted into the template. For
example:
tim("Hello {{place}}", {place: "world"});
// "Hello world"
https://github.com/premasagar/tim
0 komentar:
Posting Komentar