Replies: 1 comment
-
Hey @HiPhish, the original design idea for django-pattern-library was that you would directly point it at the components’ source, and use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
on the documentation website under "Related projects" a number of component libraries like django-components and JinjaX are listed as "complementary" packages. The question is, what would be the best way to go about using them? My guess would be to define the components in one place outside the patterns directory, and then in the patterns directory define small wrappers around the components which just call the components.
Here is an example using JinjaX:
Then the patterns
This would also allow me to have multiple variants of the same component as separate patterns. In this setup patterns are just for displaying in the pattern library frontend, but not for building actual pages. Is this the way to go or is there a better approach?
Beta Was this translation helpful? Give feedback.
All reactions