You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ The requirements for using filters with Pattern Lab:
148
148
* The filter **must** set the variable `$filter`
149
149
* Only one filter per file (_e.g. can only set `$filter` once per file_)
150
150
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`:
152
152
153
153
```php
154
154
<?php
@@ -175,7 +175,7 @@ The requirements for using functions with Pattern Lab:
175
175
* The function **must** set the variable `$function`
176
176
* Only one function per file (_e.g. can only set `$function` once per file_)
177
177
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`:
179
179
180
180
```php
181
181
<?php
@@ -202,7 +202,7 @@ The requirements for using tests with Pattern Lab:
202
202
* The test **must** set the variable `$test`
203
203
* Only one test per file (_e.g. can only set `$test` once per file_)
204
204
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`:
206
206
207
207
```php
208
208
<?php
@@ -254,7 +254,7 @@ Tags are the most complicated extension to set-up with Pattern Lab. Three steps
254
254
255
255
Pattern Lab takes care of the registering for you based on the file name.
256
256
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`.
258
258
259
259
```php
260
260
<?php
@@ -328,11 +328,11 @@ You can modify the default date and interval formats for Twig by editing the `tw
328
328
329
329
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:
0 commit comments