EDIT
With the API change introduced in version 0.8.0 , the compile() method was integrated into parse() . Manual compilation of templates is no longer required.
Mustache.parse()
It parses the template and creates the body of the JavaScript function (string) from it. During this process, it notifies of any syntax errors encountered in the template.
Mustache.compile()
Uses the function body returned from successful parse() to create the actual JavaScript function. The created function is cached for reuse.
Mustache.render()
It takes the appropriate function for the given template (the one compile() ) and applies it to the actual data. This creates a result that should be displayed on the screen.
Tomalak
source share