Mustache template engine for D.
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
Mustache for D
Mustache is a push-strategy (a.k.a logic-less) template engine.
See example directory and DDoc comments.
File extenstion of Mustache template. Default is "mustache".
root path to read Mustache template. Default is "."(current directory).
- findPath(string delegate(string))
callback to dynamically find the path do a Mustache template. Default is none. Mutually exclusive with the
Cache level for Mustache's in-memory cache. Default is "check". See DDoc.
- handler(String delegate())
Callback delegate for unknown name. handler is called if Context can't find name. Image code is below.
if (followable context is nothing) return handler is null ? null : handler();
Working on CTFE.
Copyright (c) 2011 Masahiro Nakagawa
Distributed under the Boost Software License, Version 1.0.
- Registered by Nick Sabalausky
- 0.1.5 released 6 months ago
- Boost Software License, Version 1.0
- Copyright (c) 2011-. Masahiro Nakagawa