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>
1.0 2014-09-09 21:24:14 laplante@sednove.com
1.1 2019-05-15 laplante@sednove.com From version 5.117, add the possibilities to don't specify the filename