Skip to content
轩子 edited this page Jul 10, 2019 · 3 revisions

About Fet Config

AutoRoot,when you compile your fet template code to html/template,if AutoRoot is true, then the variables what you are not assigned in the template will be treated as the template data.for example,$Result is a variable not found in the assigned variable scopes, when AutoRoot is true, it will compiled to $.Result, otherwise, it will compiled to variable $Result, to output $.Result, you need use $ROOT.Result to describe it's a template data directly.

What the differences between php smarty and fet

Fet has the same syntax as the php smarty.but smarty has a support of php language, so you can use the php functions in smarty, if you want to use the same functions in fet, you need add similar tempFunc function by golang to the funcs.go. The other way, some features in smarty that are no supported by fet. but we will achieve it step by step if possible.

Clone this wiki locally