pattern-lab / patternengine-php-twig

Twig-based PatternEngine for Pattern Lab.
http://patternlab.io/
MIT License
78 stars 36 forks source link

Update template inheritance documentation #18

Closed TxHawks closed 8 years ago

TxHawks commented 8 years ago

Indicate that all patterns can be extended, and the specific use-case of extending a pattern from source/_layouts.

Closes #17

EvanLovely commented 8 years ago

Thanks for adding this! Could you also add one more part? So if there are two template files in the same directory, then it's also possible to not have the first part (molecultes-, templates-, etc). If you had file1.twig and file2.twig in the same directory, you could use this in file2.twig: {% extend "file1.twig" %}.

EvanLovely commented 8 years ago

I can actually just do this; thanks for chipping in!!