How to deal with extensions? #26
cemrehancavdar
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I' working on a custom scoped style extension to use with JinjaX, can't use with jinja because child templates might get rendered after parent templates. I can use <style scoped> tags (kinda like vue) and it adds it to header.
The
collected_css
&collected_js
inspired me to do it.So could there be a JinjaX extension system?
For ex: that my
scoped_style
logic live with catalog and get rendered withcatalog.render_assets()
Nested styles gist:
https://gist.github.com/cemrehancavdar/0ee83a9f8382e8e637e039107209e707
Beta Was this translation helpful? Give feedback.
All reactions