Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansuter committed Sep 19, 2019
1 parent 1467ea3 commit 81e141e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,19 @@ $twig->addExtension(new CacheBustingTwigExtension(
```


## Custom Twig Tag

If you want to change the twig tag `cache_busting` into something else, you can do that simply
by setting the second argument of the constructor of `\AdrianSuter\TwigCacheBusting\CacheBustingTokenParser`.

```php
new CacheBustingTokenParser(
new FileNameCacheBuster('/home/htdocs/public'),
'cb'
)
```


## Contribution

Is much welcomed.

0 comments on commit 81e141e

Please sign in to comment.