diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2012-12-24 20:10:27 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2012-12-24 20:10:27 +0100 |
| commit | c5e75352f27a02501b3a1a9189f10a581c12e7fb (patch) | |
| tree | b3bdae02b91bbb7ab4f5bb48b9704dbf378ce533 /src/generators.h | |
| parent | dff418800174265b1a591ac44eb244e2b16f94a5 (diff) | |
| download | cataract-c5e75352f27a02501b3a1a9189f10a581c12e7fb.tar.xz | |
block-parser: Add support for custom block functions
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.
Diffstat (limited to 'src/generators.h')
0 files changed, 0 insertions, 0 deletions
