Open mischah opened 7 years ago
@mischah We've been working on this in for release\2.0.0
I thought we had an open issue for it but apparently we don't so I've made this the issue.
we use twig templates if we could add support of this that would be great.
I love Twig, @kineodavid. I also think Nunjucks could be worth considering. It's very similar to Twig in terms of syntax. The documentation is very good too 🙂
It's worth noting that we should consider component level state in a data.json
file to allow users to do stuff like looping within their components. That would create a nice markup and sample relationship by proxy too.
Tell us about the issue you are experiencing
Am I right that I have to duplicate markup when using the same component in different other components?
What behaviour would you expect?
The possibility to use something like partials to include existing components into other ones. This would increase maintainability of a pattern Library generated with Astrum.
Other tools to generate and maintain pattern libraries are using template engines to accomplish this:
Your environment
Platform: Mac OS OS Version: 10.11.6 Node Version: 6.9.5 NPM Version: 4.4.1 Astrum Version: 1.9.3