-
Notifications
You must be signed in to change notification settings - Fork 0
WebFramework templates
Semyon Gritsenko edited this page May 12, 2024
·
5 revisions
Template interpreter only works with code in {% %} wrapper in files with .wfdp extension.
Each function call must be ended with semicolon.
Each variable must be surrounded with $ symbol.
Example:
...
{%<h1>print($name$, $surname$);</h1>%}
...
After interpreter run example would looks like
...
<h1>UserName UserSurname</h1>
...
print(...);
... - arguments surrounded by $ symbol.
All argument values splitted by comma.
include($pathToFile$);
$pathtoFile$ - path to file that replace function.
File content.
for(start, end, functionName, [optional]cycleStep);
start - start index.
end - index after end.
functionName - name of standard function or newly registered function.
cycleStep - custom cycle step value [optional parameter](default value is 1)
Function execution result repeated (end - start) times(default)