我们这里以一个Tag的方式来解析文章内容。
Opened this issue · 0 comments
n37r06u3 commented
这里是不是应该写成
我们这里通过django 自定义template filter的方式来实现解析文章内容。
template tag 和 template filter 应该是不同的东西
filter 带管道的功能 tag 只是输出一些东西
它们都定义在templatetags 目录里面
Opened this issue · 0 comments
这里是不是应该写成
我们这里通过django 自定义template filter的方式来实现解析文章内容。
template tag 和 template filter 应该是不同的东西
filter 带管道的功能 tag 只是输出一些东西
它们都定义在templatetags 目录里面