File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,15 @@ For more general information on Mustache, consult the [mustache specification](h
7
7
To use this module, add this project as a dependency in your Package.swift file.
8
8
9
9
``` swift
10
- .Package (
11
- url : " https://github.com/PerfectlySoft/Perfect-Mustache.git" ,
12
- majorVersion : 3
13
- )
10
+ .package (url : " https://github.com/PerfectlySoft/Perfect-Mustache.git" , from : " 3.0.0" )
11
+ ```
12
+
13
+ Next, add "PerfectMustache" to the list of dependencies for the target that will use PerfectMustache.
14
+
15
+ Example target configuration:
16
+
17
+ ``` swift
18
+ targets: [.target (name : " PerfectTemplate" , dependencies : [" PerfectHTTPServer" , " PerfectMustache" ])]
14
19
```
15
20
16
21
Then import the Mustache Module in your source code before using:
@@ -105,10 +110,11 @@ let responseString = try context.formulateResponse(withCollector: collector)
105
110
106
111
### Tag Support
107
112
108
- This Mustache template processor supports:
113
+ This mustache template processor supports:
109
114
110
115
* {{regularTags}}
111
116
* {{{unencodedTags}}}
117
+ * {{& unescapedTags}}
112
118
* {{# sections}} ... {{/sections}}
113
119
* {{^ invertedSections}} ... {{/invertedSections}}
114
120
* {{! comments}}
You can’t perform that action at this time.
0 commit comments