summaryrefslogtreecommitdiff
path: root/src/block-parser.h
AgeCommit message (Collapse)AuthorFilesLines
2012-12-24block-parser: Add support for custom block functionsTomas Bzatek1-0/+11
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.
2011-06-04Introduce conditional systemTomas Bzatek1-1/+5
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.
2011-03-31block-parser: Add function to mark block as usedTomas Bzatek1-0/+7
Some blocks such as "IMG_LIST" are containers themselves and no data are retrieved from them. That way they don't ever get marked as used, resulting in constant hit in the generator loop.
2010-12-12Fix indentationTomas Bzatek1-1/+1
2010-12-12Cleanup header definesTomas Bzatek1-1/+10
2009-05-10Consolidate data typesTomas Bzatek1-37/+4
2009-04-04New block parserTomas Bzatek1-0/+97