Editing mustache.js This edit will create a new revision. Your details (optional) Name Email (won’t be displayed; might be used for Gravatar) URL Test case details Title * Published (uncheck if you want to fiddle around before making the page public) Description (in case you feel further explanation is needed)(Markdown syntax is allowed) Tracking mustache.js performance. Are you a spammer? (just answer the question) Preparation code Preparation code HTML (this will be inserted in the <body> of a valid HTML5 document in standards mode) (useful when testing DOM operations or including libraries) <script src="https://raw.github.com/janl/mustache.js/90cc5f0d185282b9bc08e7be7a134606d36ada3f/mustache.js"></script> <script>Mustache042 = Mustache;</script> <script src="https://raw.github.com/janl/mustache.js/6d1954cb5c125c40548c9952efe79a4534c6760a/mustache.js"></script> <script>Mustache052 = Mustache;</script> <script src="https://raw.github.com/janl/mustache.js/f5d18caee285aeba3e46563fafc2d74684f569d5/mustache.js"></script> <script>Mustache060 = Mustache;</script> Include JavaScript libraries as follows: <script src="//cdn.ext/library.js"></script> Define setup for all tests (variables, functions, arrays or other objects that will be used in the tests) (runs before each clocked test loop, outside of the timed code region) (e.g. define local test variables, reset global variables, clear canvas, etc.) (see FAQ) var template = "Hello {{name}}\nYou have just won ${{value}}!\n{{#in_ca}}\nWell, ${{ taxed_value }}, after taxes.\n{{/in_ca}}\n"; var view = { name: "Chris", value: 10000, taxed_value: function() { return this.value - (this.value * 0.4); }, in_ca: true }; Define teardown for all tests (runs after each clocked test loop, outside of the timed code region) (see FAQ) Code snippets to compare Test 1 Title Async (check if this is an asynchronous test) Code Mustache042.to_html(template, view); Test 2 Title Async (check if this is an asynchronous test) Code Mustache052.render(template, view); Test 3 Title Async (check if this is an asynchronous test) Code Mustache060.render(template, view);