Access to EvaluationContext variables

24 views
Skip to first unread message

Ashley Westwell

unread,
Aug 3, 2020, 9:03:18 PM8/3/20
to Pebble Templating Engine
Good Day

Good Evening All,

I am attempting to access a variable defined in the EvaluationContex using the following

final Object test = this.evaluationContext.getVariable("$context");

However from the screen shot attached you can see it is returning null instead of continuing to iterate the next scope definition which has the "$context" variable defined.

Can someone please explain what scope.isLocal() is and how can I find a variable across all the scopes.

Thanks

Ash
issue.png
Reply all
Reply to author
Forward
0 new messages