Variables and includes are parsed separately
Opened this issue · 0 comments
xoorath commented
Right now if you set a variable, include a component then repeat that process changing the variable: the last variable set will be used for all included components.
It would be nice to allow patterns like so:
{variable:modal_id=1}
{variable:modal_src=./snowedin/starfield_1.png}
{include:GalleryModal.html}
{variable:modal_id=2}
{variable:modal_src=./snowedin/starfield_2.png}
{include:GalleryModal.html}
The way things work right now: modal_id and modal_src will have the same (last declared) value at each include statement.