(ezc): generate only requested frames
This commit is contained in:
@@ -40,8 +40,6 @@
|
||||
|
||||
namespace Winix
|
||||
{
|
||||
|
||||
|
||||
namespace TemplatesFunctions
|
||||
{
|
||||
|
||||
@@ -92,7 +90,7 @@ int was_enter = 0; // how many enteres there were before
|
||||
|
||||
|
||||
|
||||
void InitGenerator(EzcGen & gen, Ezc::Models & ezc_models)
|
||||
void InitGenerator(EzcGen & gen, Request & request)
|
||||
{
|
||||
gen.TrimWhite(gen_trim_white);
|
||||
gen.SkipNewLine(gen_skip_new_line);
|
||||
@@ -108,8 +106,17 @@ void InitGenerator(EzcGen & gen, Ezc::Models & ezc_models)
|
||||
gen.SetFunctions(ezc_functions);
|
||||
gen.SetVariables(ezc_vars);
|
||||
|
||||
gen.SetModels(ezc_models);
|
||||
gen.SetModels(request.models);
|
||||
gen.SetLogger(log);
|
||||
|
||||
if( request.send_all_frames )
|
||||
{
|
||||
gen.OnlyFrames(nullptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
gen.OnlyFrames(request.send_frames);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user