Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom tags for Template #48

Open
mathiasbc opened this issue Dec 14, 2018 · 0 comments
Open

custom tags for Template #48

mathiasbc opened this issue Dec 14, 2018 · 0 comments

Comments

@mathiasbc
Copy link

I am trying to write a custom tool on the Unlayer Dashboard. I need the toll to use a custom tag I have defined in my Django environment and I need Unlayer to spit HTML for it so my email engine can inject the right content. I need something like:

{% custom_items count={{count_property}} as items %}
{% for item in items %}
  <li>{{item.name}}</li>
{% endfor %}

But obviously custom_items is not a valid tag in Nunjucks and I don't think I can assign with as items. Is there anything that can be done to achieve this ?

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

No branches or pull requests

1 participant