Template Loops and last/first line emit
gdelmas opened this issue · comments
Really love the simplicity of the templating language. I was trying to emit some JSON with it, which unfortunately does not allow trailing commas.
For example, this template
{
{{% FOR color %}}
"{{% color.identity.camelcase %}}": "{{% color.rgb %}}",
{{% END color %}}
}
emits
{
"black": "#000000",
"white": "#ffffff",
}
So the trailing comma in the penultimate line is a problem. Do you have any idea how this could be solved?