[breaking] configure custom templating languages #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/custom-templating-languages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Breaking change: this removes the
postprocessconfiguration key and replaces it with atemplatingLanguagesconfiguration key, which IMO is more descriptive of what this is doing now. The actual differences in the configuration API are pretty small, mainly just dealing with adataobject that would be passed in fromresponse.render(data)(and may be defined for static files in the future).Also, this adds support for JavaScript templates to
export const contentType = 'something/else'to configure the content-type used by your JavaScript template. It's no longer locked totext/html.