Page 1 of 1

LISE - pass custom var to template

Posted: Sun Aug 19, 2018 3:55 am
by ooopie
When I call a LISE instance, is there a way I can pass a custom variable to the template?

For example:

Code: Select all

{LISEmymodule myFavoriteColor="purple"}
and then the template:

Code: Select all

<div style="color: {$myFavoriteColor}">

Re: LISE - pass custom var to template

Posted: Sun Aug 19, 2018 10:54 am
by Rolf
This should do it:

Code: Select all

{$myFavoriteColor='purple' scope=global}
{LISEmymodule}