Mustache provides logic-less minimal templates in JavaScript.
Programmers can use mustache.js for rendering templates in his browser, rendering server-side templates alongside node.js or use it for rendering stuff in CouchDB’s views.
Mustache folllows the trend of separating logics code from HTML tags.
Mustache is also available in:
JavaScript - download mustache.js here
Ruby - download Mustache here.
Python - download pystache here.
Erlang - download mustache.erl here.
PHP - download mustache.php here.
Perl - download Mustache Template here.
Go - download mustache.go here.
Lua - download hige here.
ooc - download Mustang here.
C++ - download plustache here.
ActionScript 3 - download mustache.as here.
Java - download mustache.java here.
node.js - download Mu here.
Here are some key features of "mustache.js":
· Template Tag Types
· Simple Tags
· Conditional Sections
· Enumerable Sections
· Higher Order Sections
· Dereferencing Section
· Inverted Sections
· View Partials
· Streaming
· Escaping
· Pragmas
· Implicit Iterator
Requirements:
· JavaScript enabled on client side
What's New in This Release: [ read full changelog ]
· Improved whitespace handling.
· Make IMPLICIT ITERATORS a first class feature.
· Fix Rhino compat.
· CommonJS packaging is no longer a special case.
· DRY Rakefile.
· Allow whitespace around tag names.
· Fix partial scope.
· Fix Comments.
· Added inverted sections.
· Avoid double encoding of entities.
· Use sections to dereference subcontexts.
· Added higher order sections.