updated to the new ezc api (Generator has three additional parameters now)

This commit is contained in:
Tomasz Sowa 2021-07-13 01:46:07 +02:00
parent 2dcfeaa688
commit 2e45cb6ac9
3 changed files with 4 additions and 4 deletions

View File

@ -338,9 +338,9 @@ public:
HtmlTextStream out_main_stream;
// text output streams used in ajax requests (send in JSON format to the client)
// in ezc templates you can use [ezc out "stream_name"] keyword
// in ezc templates you can use [ezc frame "stream_name"] or just [frame "stream_name"] keyword
// to switch between streams
Ezc::OutStreams<HtmlTextStream> out_streams;
Ezc::OutStreams<HtmlTextStream, true> out_streams;
// if true the JSON object is generated only from info (out_streams are not used)
// default: false

View File

@ -79,7 +79,7 @@ private:
bool patterns_changed;
Patterns patterns;
TemplatesNotifyFunctions::NotifyStream notify_stream;
Ezc::Generator<TemplatesNotifyFunctions::NotifyStream> generator;
Ezc::Generator<TemplatesNotifyFunctions::NotifyStream, true> generator;
virtual bool Init();
virtual bool SignalReceived();

View File

@ -56,7 +56,7 @@ namespace TemplatesFunctions
typedef Ezc::Functions<HtmlTextStream> EzcFun;
typedef Ezc::Generator<HtmlTextStream> EzcGen;
typedef Ezc::Generator<HtmlTextStream, true, true> EzcGen;
typedef Ezc::FunInfo<HtmlTextStream> Info; // deprecated
template<class RawType>