added: two options to the config:
ezc_error_prefix (string)
ezc_error_postfix (string)
// prefix and postfix used when there is an error in Ezc patterns
// default:
// prefix: "<!-- "
// postfix: " -->"
added: Ezc::Blocks to templates
added: although patterns have pointers to functions and blocks cached
the Ezc::Generator should use SetFunctions() and SetBlocks() method
in order to correctly recognize variables (aliases)
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@978 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -46,6 +46,7 @@ Ezc::Functions<NotifyStream> ezc_functions;
|
||||
|
||||
|
||||
|
||||
|
||||
// you can use this pointer in template functions (will be always valid)
|
||||
NotifyUserMsg notify_user_msg;
|
||||
NotifyMsg notify_msg;
|
||||
@@ -120,6 +121,12 @@ void CreateFunctions()
|
||||
|
||||
ezc_functions.Insert("fil_qencode", fil_qencode);
|
||||
|
||||
/*
|
||||
* IMPROVE ME
|
||||
* now we are able to read from a Space struct and these functions can be removed
|
||||
* and we can use directly a Space struct
|
||||
* (copy those functions here from normal templates)
|
||||
*/
|
||||
ezc_functions.Insert("notify_add", notify_add);
|
||||
ezc_functions.Insert("notify_edit", notify_edit);
|
||||
ezc_functions.Insert("notify_delete", notify_delete);
|
||||
|
||||
Reference in New Issue
Block a user