Skip to content

Commit 3e28821

Browse files
committed
Merge pull request #5 from TxHawks/patch-2
Correct filenames of Twig extensions
2 parents a022c8c + aaba74b commit 3e28821

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ The requirements for using filters with Pattern Lab:
148148
* The filter **must** set the variable `$filter`
149149
* Only one filter per file (_e.g. can only set `$filter` once per file_)
150150

151-
An example function called `rot13.filter.twig` in `source/_twig-components/filters`:
151+
An example function called `rot13.filter.php` in `source/_twig-components/filters`:
152152

153153
```php
154154
<?php
@@ -175,7 +175,7 @@ The requirements for using functions with Pattern Lab:
175175
* The function **must** set the variable `$function`
176176
* Only one function per file (_e.g. can only set `$function` once per file_)
177177

178-
An example function called `boo.function.twig` in `source/_twig-components/functions`:
178+
An example function called `boo.function.php` in `source/_twig-components/functions`:
179179

180180
```php
181181
<?php
@@ -202,7 +202,7 @@ The requirements for using tests with Pattern Lab:
202202
* The test **must** set the variable `$test`
203203
* Only one test per file (_e.g. can only set `$test` once per file_)
204204

205-
An example of a simple test called `red.test.twig` in `source/_twig-components/tests`:
205+
An example of a simple test called `red.test.php` in `source/_twig-components/tests`:
206206

207207
```php
208208
<?php
@@ -254,7 +254,7 @@ Tags are the most complicated extension to set-up with Pattern Lab. Three steps
254254

255255
Pattern Lab takes care of the registering for you based on the file name.
256256

257-
An example of a simple tag called `setdupe.tag.twig` in `source/_twig-components/tags` that mimics the default `set` tag. Please note all of the locations where class names incorporate the filename, `setdupe`.
257+
An example of a simple tag called `setdupe.tag.php` in `source/_twig-components/tags` that mimics the default `set` tag. Please note all of the locations where class names incorporate the filename, `setdupe`.
258258

259259
```php
260260
<?php
@@ -328,11 +328,11 @@ You can modify the default date and interval formats for Twig by editing the `tw
328328

329329
To disable extensions that you're no longer using simply add an underscore to the beginning of a filename and then re-generate your site. For example, the enabled rot13 filter:
330330

331-
source/_twig-components/filters/rot13.filter.twig
331+
source/_twig-components/filters/rot13.filter.php
332332

333333
And the disabled rot13 filter:
334334

335-
source/_twig-components/filters/_rot13.filter.twig
335+
source/_twig-components/filters/_rot13.filter.php
336336

337337
Then re-generate your Pattern Lab site with:
338338

0 commit comments

Comments
 (0)