Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

How to use shorthand syntax outside of patternlab itself #18

Closed
adamf321 opened this issue Jul 26, 2016 · 3 comments
Closed

How to use shorthand syntax outside of patternlab itself #18

adamf321 opened this issue Jul 26, 2016 · 3 comments

Comments

@adamf321
Copy link

We're building a WordPress starter theme which uses patternlab as a dependency in order for us to work using atomic design.

The idea is to re-use the templates created in patternlab in our theme. However, using the normal twig way of doing things doesn't work as it can't interpret the shorthand syntax (http://patternlab.io/docs/pattern-including.html).

Where is this set in the patternlab twig code? And how can we reuse it outside of patternlab?

Thanks!

PS The theme will be open source and we'd love to share it with the patternlab community!

@bradfrost
Copy link
Member

Hey @adamf321,
Thanks for your interest in making a Wordpress theme that has Pattern Lab baked in. That sounds fantastic!

Where is this set in the patternlab twig code? And how can we reuse it outside of patternlab?

I'm not the best person to answer this as I'm a bit outside of the nitty gritty, but perhaps @EvanLovely could share how they did it for the Drupal edition?

@adamf321
Copy link
Author

adamf321 commented Aug 1, 2016

Thanks @bradfrost!

I already discussed it with Dave Olsen in the Gitter room, I think it will all work nicely once we can order patterns without adding the numeration to the name (e.g. 01-my-organism). Until then we'll have to live with it being a bit more messy than I'd like.

Ref pattern-lab/patternlab-php-core#48

@dmolsen
Copy link
Member

dmolsen commented Aug 2, 2016

Since it sounds like this one has a solution (albeit not great) I'm closing it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants