diff --git a/README.md b/README.md index 4d52003..4ce98ed 100644 --- a/README.md +++ b/README.md @@ -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)); } }); - String tmpl = "...some template..."; + String tmpl = "...{{>subtmpl}}..."; c.compile(tmpl).execute(); + // will load `new File(templateDir, "subtmpl")` when compiling the template Extensions ==========