(ezc): generate only requested frames

This commit is contained in:
2024-07-07 22:10:29 +02:00
parent b2f4c065ea
commit 2490e2cc68
7 changed files with 28 additions and 27 deletions

View File

@@ -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);
}
}