source: appstream-generator/contrib/subprojects/mustache-d-0.1.3/README.markdown @ 4841

Last change on this file since 4841 was 4841, checked in by Juanma, 2 years ago

Initial release

File size: 1.3 KB
Line 
1[![Build Status](https://travis-ci.org/repeatedly/mustache-d.png)](https://travis-ci.org/repeatedly/mustache-d)
2
3# Mustache for D
4
5Mustache 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
27See example directory and DDoc comments.
28
29## Mustache.Option
30
31* ext(string)
32
33File extenstion of Mustache template. Default is "mustache".
34
35* path(string)
36
37root path to read Mustache template. Default is "."(current directory).
38
39* findPath(string delegate(string))
40
41callback to dynamically find the path do a Mustache template. Default is none. Mutually exclusive with the `path` option.
42
43* level(CacheLevel)
44
45Cache level for Mustache's in-memory cache. Default is "check". See DDoc.
46
47* handler(String delegate())
48
49Callback 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
56Working 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
64man page
65
66# Copyright
67
68    Copyright (c) 2011 Masahiro Nakagawa
69
70Distributed under the Boost Software License, Version 1.0.
Note: See TracBrowser for help on using the repository browser.