wso2/jaggery

Question

caztial opened this issue · 1 comments

var test="Lorem Ipsum";
include_once(app_path+'views/'+view_name+'.jag');

how to access the test variable from the jag file I included. it it possible ?

Hi Manoj,

You should be able to access it from the included jag file as the {view_name}.jag is added to the scope of the first jag file ( I could be wrong on this point) .

Thanks,
Splinter