Added compiler.
This commit is contained in:
+5
-1
@@ -65,7 +65,11 @@ Handlebars = {
|
||||
var compiled = Handlebars.compiledPartials[partial];
|
||||
|
||||
if (compiled == null) {
|
||||
compiled = Handlebars.compile(partial);
|
||||
if (Handlebars.isFunction(partial)) {
|
||||
compiled = partial;
|
||||
} else {
|
||||
compiled = Handlebars.compile(partial);
|
||||
}
|
||||
Handlebars.compiledPartials[partial] = compiled;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
This is the story of guys who work on a project
|
||||
called {{project}}. Their names were {{#people}}{{firstName}} and {{/people}}
|
||||
they both enjoyed working on {{project}}.
|
||||
|
||||
{{#people}}
|
||||
{{>personPet}}
|
||||
{{/people}}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<ol id="qunit-tests"></ol>
|
||||
<div id="main">
|
||||
</div>
|
||||
<script type="text/javascript" src="compat.js"></script>
|
||||
<script type="text/javascript" src="perf.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user