26 lines
710 B
HTML
26 lines
710 B
HTML
|
{%- if include.func -%}
|
||
|
{%- assign func = include.func -%}
|
||
|
{%- endif -%}
|
||
|
|
||
|
{%- assign include_path = func -%}
|
||
|
{%- assign path_array = include_path | split: '.' -%}
|
||
|
{%- if path_array.size == 1 -%}
|
||
|
{%- assign include_path = include_path | append: '.html' -%}
|
||
|
{%- endif -%}
|
||
|
|
||
|
{%- if func == 'log' -%}
|
||
|
{%- include functions/log.html level=include.level msg=include.msg -%}
|
||
|
{%- else -%}
|
||
|
{%- assign include_path = 'functions/' | append: include_path -%}
|
||
|
{%- include {{ include_path }} -%}
|
||
|
{%- endif -%}
|
||
|
|
||
|
{%- if func != 'log' -%}
|
||
|
{%- assign msg = '[function]['
|
||
|
| append: {{func}}
|
||
|
| append: '] '
|
||
|
| append: {{return}}
|
||
|
-%}
|
||
|
{%- include functions.html func='log' level='info' -%}
|
||
|
{%- endif -%}
|