I stumbled upon the template() attribute doc, which states
ext (as ext = "txt"): lets you specify the content type as a file extension [...]. Cannot be used together with path.
I found this not to be true, I could combine both (for example #[template(path = "welcome.html.j2", ext = "html")]) and it compiled and used the html extension and mime type (which I'm happy about, because this way I can at least somewhat specify the MIME type :) ). So I guess the docs should get fixed here.
Hi,
I stumbled upon the template() attribute doc, which states
I found this not to be true, I could combine both (for example
#[template(path = "welcome.html.j2", ext = "html")]
) and it compiled and used the html extension and mime type (which I'm happy about, because this way I can at least somewhat specify the MIME type :) ). So I guess the docs should get fixed here.