You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm finding that if there is more than one call to render the same template file, the results get nested further into an array with each call.
swig template:
select {% bind fn %} AS solution
js code:
var swigql = require('swigql');
var params = {
fn: 'J\'ames',
last_names: ['Franklin', 'Cooper', 'Smitty', 'Black']
};
var tmpl1 = swigql.compileFile(process.cwd() + "/example.sql");
console.log(tmpl1.render(params));
var tmpl2 = swigql.compileFile(process.cwd() + "/example.sql");
console.log(tmpl2.render(params));
Hello
I'm finding that if there is more than one call to render the same template file, the results get nested further into an array with each call.
swig template:
select {% bind fn %} AS solution
js code:
The text was updated successfully, but these errors were encountered: