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 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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: