Skip to content

Commit 11a8ddb

Browse files
authored
Update mustache.md
1 parent 2b1201b commit 11a8ddb

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

guide/mustache.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ For more general information on Mustache, consult the [mustache specification](h
77
To use this module, add this project as a dependency in your Package.swift file.
88

99
```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"])]
1419
```
1520

1621
Then import the Mustache Module in your source code before using:
@@ -105,10 +110,11 @@ let responseString = try context.formulateResponse(withCollector: collector)
105110

106111
### Tag Support
107112

108-
This Mustache template processor supports:
113+
This mustache template processor supports:
109114

110115
* {{regularTags}}
111116
* {{{unencodedTags}}}
117+
* {{& unescapedTags}}
112118
* {{# sections}} ... {{/sections}}
113119
* {{^ invertedSections}} ... {{/invertedSections}}
114120
* {{! comments}}

0 commit comments

Comments
 (0)