liquid-rust
liquid-rust copied to clipboard
feat(lib): Add render tag
Hey, here's my PR for #471.
See the description including
- the selected template cannot access any variables from the parent scope
- I've created a new
OpaqueStackFramestruct, I needed a way to make sure that only the variables passed into therendertag could be accessed from inside it.
- I've created a new
- the selected template's variables do not leak into the parent scope
- variables can be passed to the template with either
key: valuesyntax or withwith <var> [as <var>] - rendered content can be looped over with
for <value> [as <var>]and the template has access toforloop- I moved the
ForloopObjectandRangestructs into a parent module, this is because I wanted to use them for theforvariant of therendertag.
- I moved the