pattern-lab / patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
http://patternlab.io/
MIT License
43 stars 62 forks source link

Turbo-charge Markdown Docs by Enabling Pattern Engine Templates To Be Used #104

Closed sghoweri closed 6 years ago

sghoweri commented 7 years ago

This PR enables pattern templates to be used in Markdown files by pre-rendering the markdown's contents via the Pattern Loader (which should enable Twig and Mustache templates to be handed this way), before rendering the pre-compiled result as Markdown normally.

Or to put it simply: this lets you use the full power of Pattern Lab's templating engine inside the pattern documentation being written.

@dmolsen @bradfrost - LMK your thoughts!!

sghoweri commented 6 years ago

Closing this out - duplicate of #126 (which includes a slightly more recent version of this idea)