Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var template = "<h1>Hello {{$name$}}</h1>"
- var customTags = [ '{{$', '$}}' ];
- Mustache.parse(template, cutomTags);
- var result = Mustache.render(template, { name: "John" };
- console.log(result);
- Hello John
Add Comment
Please, Sign In to add comment