Feb 10, 2015; 16:35
Jolle Carlestam
Handy include method
I have published a method that I use everywhere that replaces any need for regular includes of Lasso files. It will allow you to send params to the include that will be available as locals on the included page, thus containing any data inside the scope of the page.
It can be found and downloaded here.
https://gist.github.com/jolle-c/95847fcd568d63d09aed
Note! I did not write this method and will not claim authorship of it. I think it was Ke who handed the code to me, but my memory is fading.
Example
jc_include(file('includetest.inc'), -name = 'Jolle', -country = 'Sweden')
Content of includetest.inc:
My name is [#name]
br
I come from [#country]
HDB
Jolle
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>