Python 在Jinja2模板中集成Ember widgets Highchart
我在用烧瓶,还有。我的问题是,是否有可能在同一个模板中(然后,这个模板在jinja2中运行)有Ember小部件和Highchart而不使用?这是因为对于Ember,在模板中,我需要放置Python 在Jinja2模板中集成Ember widgets Highchart,python,ember.js,highcharts,flask,jinja2,Python,Ember.js,Highcharts,Flask,Jinja2,我在用烧瓶,还有。我的问题是,是否有可能在同一个模板中(然后,这个模板在jinja2中运行)有Ember小部件和Highchart而不使用?这是因为对于Ember,在模板中,我需要放置{%raw%},并且我无法使用下面的行从flask传递参数: return render_template('plot.html', data = array_values) 谢谢 您不需要将整个模板保存在{%raw%}容器中;您可以混合搭配: {% raw %} {{#accordion-component}}
{%raw%}
,并且我无法使用下面的行从flask传递参数:
return render_template('plot.html', data = array_values)
谢谢 您不需要将整个模板保存在
{%raw%}
容器中;您可以混合搭配:
{% raw %}
{{#accordion-component}}
{{#accordion-item isActive=true title="Foo Bar"}}
{% endraw %}
This is text in an accordion, with a
<a href="{{ url_for('blah') }}">link elsewhere</a>.
{% raw %}
{{/accordion-item}}
{{#accordion-item title="Bar Baz"}}
Anim pariatur cliche reprehenderit...
{{/accordion-item}}
{{/accordion-component}}
{% endraw %}
这里,由Jinja2指令插入popover组件周围的{..}
尖括号,结束标记是一个字符串插值
{{ '{{' }}#popover-link-component tagName="button"
class="btn btn-primary" title="{{ popover_title }}"
content="{{ popover_content }}" {{ '}}' }}
{{
{{ '{{/popover-link-component}}' }}