Posted on 12/03/2018 17:49:59
Hi Martin,
That would be a great option, specially considering the new JS trends.
In the meanwhile Imar and I came up with a few ideas on how to do this, which we will run with for now:
- We have a "module" called Template Renderer that just renders a template
Serves multiple purposes, but in this case act as middleman.
- We already have Layout templates to return JSON or HTML or something else
- We add a paragraph (with a clean template) and the Template Renderer which simply returns javascript variables with the @Translate tag
- We request that page as if it was a JS file
DW should be able to handle the caching just fine for that "page"
Our tool handles the minification
We'll take this for a spin, but in theory it works just fine.
Best Regards,
Nuno Aguiar