Skip to content

Commit

Permalink
Update mustache.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdock authored Oct 7, 2018
1 parent 2b1201b commit 11a8ddb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions guide/mustache.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ For more general information on Mustache, consult the [mustache specification](h
To use this module, add this project as a dependency in your Package.swift file.

```swift
.Package(
url: "https://github.com/PerfectlySoft/Perfect-Mustache.git",
majorVersion: 3
)
.package(url: "https://github.com/PerfectlySoft/Perfect-Mustache.git", from: "3.0.0")
```

Next, add "PerfectMustache" to the list of dependencies for the target that will use PerfectMustache.

Example target configuration:

```swift
targets: [.target(name: "PerfectTemplate", dependencies: ["PerfectHTTPServer", "PerfectMustache"])]
```

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

### Tag Support

This Mustache template processor supports:
This mustache template processor supports:

* {{regularTags}}
* {{{unencodedTags}}}
* {{& unescapedTags}}
* {{# sections}} ... {{/sections}}
* {{^ invertedSections}} ... {{/invertedSections}}
* {{! comments}}
Expand Down

0 comments on commit 11a8ddb

Please sign in to comment.