We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would you consider adding support for templating languages like Nunjucks, Handlebars, Liquid etc?
It would be very useful to be able to see template variables like {{variable}} more clearly.
{{variable}}
Here's an example from one of my projects which uses Nunjucks.
export default ['template', 'font-style', ({ theme }) => { let data = { rules: [{ name: 'font-style', abbr: 'font', ...structure(theme.font.style, ['modifiers', 'props', 'value']) }] } return render(`{% for rule in rules -%} {%- if rule.props -%} .{{rule.abbr}} { {%- for prop in rule.props %} {{prop.name | kebabcase}}: {{prop.value}}; {%- endfor %} } {%- endif -%} {% for modifier in rule.modifiers %} {% if modifier.name === 'default' %} .{{rule.abbr}} { {%- else -%} .{{rule.abbr}}-{{modifier.name}} { {%- endif -%} {%- for prop in modifier.props %} {{prop.name | kebabcase}}: {{prop.value}}; {%- endfor %} } {%- endfor -%} {%- endfor -%}`, data) }]
The text was updated successfully, but these errors were encountered:
0x00000001A
No branches or pull requests
Would you consider adding support for templating languages like Nunjucks, Handlebars, Liquid etc?
It would be very useful to be able to see template variables like
{{variable}}
more clearly.Here's an example from one of my projects which uses Nunjucks.
The text was updated successfully, but these errors were encountered: