Debian Codegraph @

README.markdown

raw
1 [![Build Status](https://travis-ci.org/repeatedly/mustache-d.png)](https://travis-ci.org/repeatedly/mustache-d)
2
3 # Mustache for D
4
5 Mustache is a push-strategy (a.k.a logic-less) template engine.
6
7 # Features
8
9 * Variables
10
11 * Sections
12
13 * Lists
14
15 * Non-False Values
16
17 * Lambdas(half implementation)
18
19 * Inverted
20
21 * Comments
22
23 * Partials
24
25 # Usage
26
27 See example directory and DDoc comments.
28
29 ## Mustache.Option
30
31 * ext(string)
32
33 File extenstion of Mustache template. Default is "mustache".
34
35 * path(string)
36
37 root path to read Mustache template. Default is "."(current directory).
38
39 * findPath(string delegate(string))
40
41 callback to dynamically find the path do a Mustache template. Default is none. Mutually exclusive with the `path` option.
42
43 * level(CacheLevel)
44
45 Cache level for Mustache's in-memory cache. Default is "check". See DDoc.
46
47 * handler(String delegate())
48
49 Callback delegate for unknown name. handler is called if Context can't find name. Image code is below.
50
51 if (followable context is nothing)
52 return handler is null ? null : handler();
53
54 # TODO
55
56 Working on CTFE.
57
58 # Link
59
60 * [{{ mustache }}](http://mustache.github.com/)
61
62 * [mustache(5) -- Logic-less templates.](http://mustache.github.com/mustache.5.html)
63
64 man page
65
66 # Copyright
67
68 Copyright (c) 2011 Masahiro Nakagawa
69
70 Distributed under the Boost Software License, Version 1.0.