简体   繁体   English

Jinja2模板呈现多个或单个文件

[英]Jinja2 template rendering multiple or single file

I just wonder whether single template rendering's performance is better than multiple template rendering's. 我只是想知道单模板渲染的性能是否优于多模板渲染的性能。

What are the cons and pros of single template rendering considering multiple template rendering? 考虑到多模板渲染,单模板渲染的利弊是什么?

使用模板继承不会造成任何性能损失,由于可重用性,您将不得不在任何项目中使用它。但这并不意味着您可以无限继承,因为它将产生文件读取开销。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM