> Smarty模板引擎中文在线手册 > 1. What is Smarty? [什么是Smaty?]

custom functions and custom variable modifiers, so the template language is extremely extensible.
可以编辑'自定义函数'和自定义'变量',因此这种模板语言完全可以扩展

  • Configurable template delimiter tag syntax, so you can use {}, {{}}, <!--{}-->, etc.
    可以自行设置模板定界符,所以你可以使用{}, {{}}, <!--{}-->, 等等

  • The if/elseif/else/endif constructs are passed to the PHP parser, so the {if ...} expression syntax can be as simple or as complex as you like.
    诸如 if/elseif/else/endif 语句可以被传递到php语法解析器,所以 {if ...} 表达式是简单的或者是复合的,随你喜欢啦

  • Unlimited nesting of sections, ifs, etc. allowed.
    如果允许的话,section之间可以无限嵌套

  • It is possible to embed PHP code right in your template files, although this may not be needed (nor recommended) since the engine is so customizable.
    引擎是可以定制的.可以内嵌php代码到你的模板文件中,虽然这可能并不需要(不推荐)

  • Built-in caching support
    内建缓存支持

  • Arbitrary template sources
    独立模板文件

  • Custom cache handling functions
    可自定义缓存处理函数

  • Plugin architecture
    插件体系结构