-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
这种inject body和script标记的动态inject方式就不适用了吧?
因为nunjucks可以继承,一般头和公共部份都通过extends方式实现。即每个模板页有可能这个样子:
{% extends "../../layout/layout.tpl" %}
{% block content %}
{% include "../widget/item/item.tpl" %}
{% if comments.length > 0%}
{% endblock %}
[-]
{{ comment.by }}
{{ comment.time | relativeTime }}
{{ helper.shtml(comment.text) }}
{% endfor %}
No comments yet.
{% endif %}请问如果是这种没有script和body标签的。该如何处理inject问题呢?
Metadata
Metadata
Assignees
Labels
No labels