-
Notifications
You must be signed in to change notification settings - Fork 4
Wiki
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.
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.