[README] Syntax highlight
This commit is contained in:
@@ -114,7 +114,7 @@ For example, `Stencil` to `stencil`.
|
|||||||
|
|
||||||
#### Registering custom filters
|
#### Registering custom filters
|
||||||
|
|
||||||
```
|
```swift
|
||||||
template.parser.registerFilter("double") { value in
|
template.parser.registerFilter("double") { value in
|
||||||
if let value = value as? Int {
|
if let value = value as? Int {
|
||||||
return value * 2
|
return value * 2
|
||||||
|
|||||||
Reference in New Issue
Block a user