generate - Used to generate a file.
generate (template : template.sn, file : filename, jsmin : true | false, cssmin : true | false, error : true | FALSE, compile : true, delcompile : false)
This function is used to generate a file from a template.
Here is the list of parameters:
Note: In the followings examples, the _ between the { should be removed to make it work.
generate(file:"gen.sn",template:"template4.sn"); generate(delcompile: false, compile: true, file:"gen.snc",template:"template5.sn"); template5.sn {_{ global a; 'a=';a; a=12; "{_{ a="; a; "; ',a from = '; a; }}"; }} \{_{ for(i=0;i<5;++i) do i; endfor }}
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
1.0 2014-09-09 21:24:14 laplante@sednove.com