Skip to content
Discussion options

You must be logged in to vote

The parser does attempt some validation on the function calls, so it also requires the context.

Change:

// case 2 KO ???
writeln(Template.Eval(ctx, Template.Parse(TFile.ReadAllText('.\templates\meTemplate.tpl')), me));

to

writeln(Template.Eval(ctx, Template.Parse(ctx, TFile.ReadAllText('.\templates\meTemplate.tpl')), me));

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by MPRDD
Comment options

You must be logged in to vote
2 replies
@MPRDD
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants