janl/mustache.js — pull request #210 by cweider (2012-05-26 17:47:44+00:00)
Title: Compilation Process

#207 notes that inline JavaScript may be restricted (IFAIK, this is true for JS in Adobe AIR). This splits the compilation into discrete parse, render, and compile steps. Compilation is now just a matter of serializing the parsed template and `toString`ing the functions and rendering. The performance impact appears to be negligible*.

* Is there a rigorous way to test this?