Update README.md

This commit is contained in:
Adam Fowler
2021-03-18 17:38:19 +00:00
committed by GitHub
parent 05740bd7bc
commit 09f5c5953e

View File

@@ -8,7 +8,7 @@ Load your templates from the filesystem
```swift
let library = HBMustacheLibrary("folder/my/templates/are/in")
```
This will look for all the files with the extension ".mustache" in the specified folder and attempt to load them.
This will look for all the files with the extension ".mustache" in the specified folder and sub-folders and attempt to load them.
Render an object with a template
```swift
@@ -29,3 +29,6 @@ let object = Person(name: "John Smith", age: 68)
let output = library.render(object, withTemplate: "myTemplate")
```
## Support
HummingbirdMustache supports all standard Mustache tags and is fully compliant with the Mustache [spec](https://github.com/mustache/spec) with the exception of the Lambda support.