Closed mzeinstra closed 1 year ago
Figured it out using the non-html example: https://github.com/glaciers-in-archives/snowman/blob/main/examples/non-html-content/views.yaml
I needed to put unsafe:true at all my not HTML views. e.g.
- output: "main.js"
template: "main.js"
unsafe: true
I have a curious case where in multiple templates the first occurrence of < is escaped.
e.g. I have a person.rdf template that starts with
<?xml version="1.0" encoding="utf-8"?>
which after build becomes<?xml version="1.0" encoding="utf-8"?>
In another case I have a script.js with a function and in the first loop
for (i = 0; i < tr.length; i++) {
becomesfor (i = 0; i < tr.length; i++) {
Is this something I am doing wrong, or a bug in the Snowman?