Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 uid=1(daemon) gid=1(daemon) grupos=1(daemon) Safe-mode: OFF (not secure) /opt/lampp/lib/php/doc/HTML_Template_Sigma/docs/templates/ drwxr-xr-x | |
| Viewing file: Select action/file-type: Σtemplate example 1: basic variables and blocksThere are two types of variables in Sigma:
A block is considered empty if there are no local (to it) variables to substitute and the block does not contain non-empty subblocks. Unknown variable placeholders and empty blocks are removed by default. This can be toggled in loadTemplateFile() call and there are means to manually control removal of blocks (see example 2). 1. Variable substitutionSet via setVariable(): {var1}, {var2}, {var3}. Set via setGlobalVariable(): {glob}. Unknown placeholders to remove: {foo}, {bar}. 2. Empty/nonempty blocks2.1 Non-empty blocksI am not empty, because a local variable is substituted: {var_ne_1}. I am not empty, because I have a non-empty subblock: (subblock: {var_ne_2}) 2.2 Empty blocksI am empty, because here is no variable to substitute: {foo}.I am not empty, because I have a local variable: {var_e_2}, but subblock is, as he has no local variable of his own: {var_e_2}, {var_e_sub_2}. I am empty, as I have only a global variable: {var_e_3}, {glob} 3. Local/global differenceLocal variables are cleared after substitution, globals are not.
|
:: Command execute :: | |
--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5302 ]-- |