From fb5a52884dd17d17bab47de7f53c17c05ced6e1b Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 4 Jun 2011 17:30:12 +0200 Subject: Introduce conditional system 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. --- src/block-parser.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/block-parser.h') diff --git a/src/block-parser.h b/src/block-parser.h index 21d0cfb..96c7fb8 100644 --- a/src/block-parser.h +++ b/src/block-parser.h @@ -31,7 +31,11 @@ BlockParser * block_parser_new (); void block_parser_free (BlockParser *parser); - +/* + * block_parser_set_conditionals: set a hash table to be used for conditionals lookup + * + */ +void block_parser_set_conditionals (BlockParser *parser, GHashTable *conditionals); /* * block_parser_register_key: tell parser to expect the key to catch -- cgit v1.2.3