-
Notifications
You must be signed in to change notification settings - Fork 0
Functions List
tacoen edited this page Jan 3, 2021
·
10 revisions
- stripper
Syntax: filedir([relative_path_to_root],[pattern])
{% for file in filedir('/user/themes/neoca/particles/tema','*.html.twig') %}
{% set f = file|replace({
'/user/themes/neoca/particles/tema/':'',
'.html.twig':''
}) %}
{{ f|raw }}
{% endfor %}Syntax: `fileget([filename])'
{% set content = fileget('/user/themes/neoca/particles/tema/file.txt') %}
{{ content|markdown|raw }}
syntax: {{ randomwords([count]) }}
Put string to config.gas
Syntax: gasvara([where],[string])
You can output this array by
``{{ config.gas.where|print_r }}```
{% set module_injectjs = module_injectjs ~ "ncc_construct_pallete('#"~id~"');" %}
{% do gasvara('inline_js',module_injectjs) %}
{# output #}
{{ config.gas.inline_js|sort|join('\n')|stripper|raw }}
Neocà, Neocàtema designed by tacoen