The ability to “templatize” HTML using javaScript isn’t a new concept but with mustache.js it is getting easier and more streamlined. Inside of the core, there are lots of functions…
Templating, JavaScript and Moustache.js
The ability to “templatize” HTML using javaScript isn’t a new concept but with mustache.js it is getting easier and more streamlined. Inside of the core, there are lots of functions to help with mundane tasks. You can also customize templates for reusable pieces of code. I havent had the chance to implement this into any of my projects yet but I will first chance I get. The docs are really easy to follow and someone with intermediate knowledge of javascript should be able to pick it up quickly.