| Age | Commit message (Collapse) | Author | Files | Lines |
|
Similar to replace-table custom functions, this brings an ability
to register custom block functions that can be called from templates
with variable arguments.
The syntax is as follows:
<!-- $(if (function_name(arg1, "arg2", 'arg3'))) -->
...
<!-- $(endif (function_name(arg1, "arg2", 'arg3'))) -->
An optional exclamation mark before the function name reverts the result
(negates) the predicate.
This allows template flexibility with respect to the currently processed image.
|
|
Some of us like to have indented arguments from a function name.
|
|
This adds a support for custom (registered) functions that can be called
from templates with specified arguments.
The syntax is as follows:
<!-- $(function_name(arg1, "arg2", 'arg3')) -->
Arguments are separated by a comma and can be quoted (recommended).
Quoted arguments are allowed to contain a comma as well as another
quote when escaped with a backslash.
To call a function with no arguments just do "function_name()".
Functions are supposed to be registered before actual data are parsed
and are called back from within the parser cycle.
|
|
And also bring back glib/gprintf.h include for g_vasprintf().
|
|
This is very basic scripting support - simple value retrieval and
block conditionals. Defines could be either static from theme setup
or programatically added during page generation.
|
|
|
|
|
|
|
|
|
|
|