20

Rust模板引擎Tera中文英文对照官方文档-天朗工作室

 3 years ago
source link: https://blog.51cto.com/14256460/2509111
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
要开发CMS(内容管理系统)得有个模板引擎,Tera是使用Rust编写的模板引擎,语法跟JinJa2很像。引入Tera要使用Tera只需要在Cargo.toml中添加:tera="1"是不是很简单^_^?默认情况下,Tera会引入一些依赖比如:truncate,date,filesizeformatslugify,urlencode和urlencode

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK