You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is definitely something I'm looking to add support for, but I can't promise any timeline around it. Bookshop has pretty tight integration with the template contents, so I'll need to find a good chunk of time to work through this. Hopefully later this year :)
I would love to see support for nunjucks. It allows for more freedom in conditional classes, especially with things like tailwind.
Example
passing arguments to the component like size, color etc. Then in in nunjucks we can something like the following:
<div class="c-animals {{ 'bg-blue' if color == blue }}">...</div>
this is a lot cleaner then it would be in liquid.
Also things like this:
{% set bg-color= ('bg-blue' if color === 'blue' else 'bg-red') %}
The text was updated successfully, but these errors were encountered: