Activity Not Available
3
I Use This!

News

Analyzed 2 months ago. based on code collected 2 months ago.
Posted 4 months ago by schrin
I meet the same problem as yours above. Firstly, I define a local variable A in main template, but I find I cannot transfer it to the included template. That means this variable A is not a global variable, only can work in main template namespace ... [More] , cannot cross the templates. I have a solutions below: with kajiki's special variables ${local}, you can get the global variables dictionary, in main template you can set variable A into the dict, then in included template you can get your variable A from the dict. I mean to make the special kajiki variable as your bridge betwwen main and included templates. 1.main template: ${t} dict['globals']['dev'] = dev?> 2.included template(test_template.xml) ${dev} p.s. local.dict['globals'] the bridge between templates. [Less]
Posted 4 months ago by schrin
I meet the same problem as yours above. Firstly, I define a local variable A in main template, but I find I cannot transfer it to the included template. That means this variable A is not a global variable, only can work in main template namespace ... [More] , cannot cross the templates. I have a solutions below: with kajiki's special variables ${local}, you can get the global variables dictionary, in main template you can set variable A into the dict, then in included template you can get your variable A from the dict. I mean to make the special kajiki variable as your bridge betwwen main and included templates. main template. ${t} dict['globals']['dev'] = dev?> included template(test_template.xml) ${dev} p.s. local.dict['globals'] the bridge between templates. [Less]
Posted about 3 years ago by Rick Copeland ☕
status: open --> closed
Posted about 3 years ago by Rick Copeland ☕
status: open --> closed
Posted about 3 years ago by Rick Copeland ☕
status: open --> closed
Posted about 3 years ago by Rick Copeland ☕
status: open --> closed
Posted about 3 years ago by Nando Florestan
This should be fixed in 0.4.0; let me know if there remain any issues. Anyway, I gave this another solution and now I find the attached patch interesting. Should there be any problems, the patch might still come in handy.
Posted about 3 years ago by Nando Florestan
This should be fixed in 0.4.0; let me know if there remain any issues. Anyway, I gave this another solution and now I find the attached patch interesting. Should there be any problems, the patch might still come in handy.
Posted about 3 years ago by Nando Florestan
I am fixing this for Kajiki 0.4.0. This ticket can be closed :)
Posted about 3 years ago by Nando Florestan
I am fixing this for Kajiki 0.4.0. This ticket can be closed :)