Context inside extension function.

22 views
Skip to first unread message

Lance White

unread,
Aug 9, 2017, 8:34:09 AM8/9/17
to Pebble Templating Engine
Hi,

Simple question (hopefully...)

Is it possible to access the context passed to evaluate inside an extension function that the evaluation calls?


Cheers

Lance

Takanori Momose

unread,
Aug 16, 2017, 8:36:57 AM8/16/17
to Pebble Templating Engine
plz see
http://www.mitchellbosecke.com/pebble/documentation/guide/extending-pebble#functions
_context
: An instance of EvaluationContext which can be used to retrieve the locale for example.

Takanori Momose

unread,
Aug 16, 2017, 8:46:52 AM8/16/17
to Pebble Templating Engine
Reply all
Reply to author
Forward
0 new messages