Open EvanLovely opened 7 years ago
To me this feels like two separate topics:
Twig Coding Standards
Twig Patterns Best Practices
To that end, I had drafted https://github.com/cybtachyon/twig-standards a bit ago and would like to offer it up as a place to separate out Twig Coding Standards.
You're absolutely right @cybtachyon - sorry about the vague wording. I meant specifically the implementation used within component-based theming using include
, extends
or embed
. I often get questions about how to integrate Pattern Lab components with views, paragraphs, blocks (fill-in-the-blank Drupal thing), so I was talking about that specific piece.
That said though, thanks for sharing your Twig Coding Standards. I'll be sharing with our team - this is awesome!
While I personally think a catch-all "Twig/PL best practices" is a bit too broad, I could see a ton of value diving into several sub-topics / reoccurring themes through real world code examples, example plugin configurations, sample code snippets, dos and don'ts, known issues or workarounds, etc.
@evanmwillhite Originally wrote: