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
pypugjs doesn't seem to support Jinja2's import directive.
import
Consider this example:
extends "base.html" import "forms.html" as forms block content | forms.render_form(form)
That should result in this:
{% extends "base.html" %} {% import "forms.html" as forms %} {% block content %}forms.render_form(form){% endblock %}⏎
However, it results in this:
{% extends "base.html" %} <import>"forms.html" as forms</import>{% block content %}forms.render_form(form){% endblock %}
You can get around it by using {% import ... %} in the pug template, but that's not really as elegant and JetBrains will complain about it too.
{% import ... %}
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
pypugjs doesn't seem to support Jinja2's
import
directive.What I Did
Consider this example:
That should result in this:
However, it results in this:
You can get around it by using
{% import ... %}
in the pug template, but that's not really as elegant and JetBrains will complain about it too.The text was updated successfully, but these errors were encountered: