Clarify partials documentation a touch.

This commit is contained in:
Michael Bayne
2011-04-13 14:53:34 -07:00
parent b1262c8edb
commit aa5a5bf3c4
+2 -1
View File
@@ -125,8 +125,9 @@ If you wish to make use of partials (e.g. `{{>subtmpl}}`) you must provide a
return new FileReader(new File(templateDir, name)); return new FileReader(new File(templateDir, name));
} }
}); });
String tmpl = "...some template..."; String tmpl = "...{{>subtmpl}}...";
c.compile(tmpl).execute(); c.compile(tmpl).execute();
// will load `new File(templateDir, "subtmpl")` when compiling the template
Extensions Extensions
========== ==========