summaryrefslogtreecommitdiff
path: root/src/replace-table.h
AgeCommit message (Collapse)AuthorFilesLines
2012-12-24block-parser: Add support for custom block functionsTomas Bzatek1-0/+7
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.
2012-04-16block-parser: Allow indented token argumentsTomas Bzatek1-0/+6
Some of us like to have indented arguments from a function name.
2012-04-15replace-table: Add support for custom functionsTomas Bzatek1-0/+11
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.
2011-06-04replace-table: Add forgotten fileTomas Bzatek1-7/+14
And also bring back glib/gprintf.h include for g_vasprintf().
2011-06-04Introduce conditional systemTomas Bzatek1-0/+6
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.
2010-12-12Fix indentationTomas Bzatek1-1/+1
2010-12-12Cleanup header definesTomas Bzatek1-2/+9
2009-05-10Consolidate data typesTomas Bzatek1-3/+3
2009-04-04Speed up replace table by using token parserTomas Bzatek1-0/+11
2009-04-04New block parserTomas Bzatek1-0/+58