I am using twig as below
res.render("screen/index.twig", {
name: 'word',
columns: columns,
});
It is working as excepted.
Now I want to switch to twing and used below code
const contents = await twing
.render("screen/index.twig", {
name: 'word',
columns: columns,
})
res.end(contents);
here contents give below
...
<script>
window.COLUMNS = [{"alignment":"left"}];
</script>
...
But I need the below output without using any .replace
function. How can I achieve this? Can anyone tell why it working in twig
and not in twing
? Thanks.
...
<script>
window.COLUMNS = [{"alignment":"left"}];
</script>
...