You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following is a curated enumeration of the functional changes to the Inja library as we consume it when upgrading from v2.1 to v3.4. This is to track the work required to support solo-io/gloo#8177
2.2
✔️ [CHANGE] Environment() constructor changed to use empty string instead of "./". link
ensure we aren't calling naked Environment() anywhere
this change was reverted in 3.4
[FEATURE] added at function to access elements in an array by index link
index out of range?
✔️ [CHANGE] Environment's load_json will throw exception if file not found link
trace codepaths that use this and ensure we aren't using any
[FEATURE] add whitespace control options trim_blocks and lstrip_blocklinkjinja reference
[FEATURE] a template can be included inside a loop, retaining the parent context link
The following is a curated enumeration of the functional changes to the Inja library as we consume it when upgrading from v2.1 to v3.4. This is to track the work required to support solo-io/gloo#8177
2.2
Environment()
constructor changed to use empty string instead of "./". linkEnvironment()
anywhereat
function to access elements in an array by index linkEnvironment
'sload_json
will throw exception if file not found linktrim_blocks
andlstrip_block
link jinja referenceinclude
d inside a loop, retaining the parent context linkEnvironment
'sImpl
class removed linkEnvironment
3.0
index
,index1
,is_first
,is_last
can be used when looping over objects (maps) linkParserConfig
include
d template not found linkRenderConfig
include
{%+
,{%-
,-%}
linkNode
constructor signatures all changed to requiresize_t
argument linkParser
constructor now take 4 args instead of 3function_storage
...Parser
config JSON Pointer RFCParser
andRenderer
made private linkexists
operation extended to be able to safely chain json pointers linkexists("array.1.name")
can be used instead of the multiple callsexists("array")
,existsIn("1", array)
, andexistsIn("name", array.1)
AtId
operation added to access specific elements in a list of objects link3.1
const
link{{%-
,-%}}
link3.2
@
and$
linkabort
instead ofthrow
link3.3
{#-
,-#}
linkat
can be nested to dynamically access object fields linkjoin
function added to join lists with a separator link3.4
Environment
fieldsinput_path
andoutput_path
changed from Public to Protected linkEnvironment()
constructor changed to use "./" instead of empty string linkTasks
The text was updated successfully, but these errors were encountered: