-
1. Re: Server-side (dynamic) Errai UI templates
csa Apr 10, 2015 2:50 PM (in response to magick93)Hi Anton,
The feature is implemented and JavaDocs written:
It's not in the reference guide yet. This will happen before the 3.2.0.Final release. Basically, @Templated allows to specify a template provider that will be executed at runtime. There's a built-in template provider that will fetch the template from an URL at runtime (which should cover most use cases). See here for an example (value is the URL in this case, not a local path):
Of course, you can specify your own provider if fetching the template from the server is not what you want to do or you have specific requirements.
Cheers,
Christian
-
2. Re: Server-side (dynamic) Errai UI templates
magick93 Apr 10, 2015 3:45 PM (in response to csa)Thanks Christian! This looks really cool. Am looking forward to trying it.
-
3. Re: Server-side (dynamic) Errai UI templates
magick93 Aug 6, 2015 4:55 PM (in response to magick93)Hi Christian
Would this new feature be suitable/capable of this user story:
I would like to be able to dynamically determine the html template based on device.
-
4. Re: Server-side (dynamic) Errai UI templates
csa Aug 7, 2015 5:40 PM (in response to magick93)Hi,
Yes it is. You can either use the built-in ServerTemplateProvider or create your own customized one and simply return the template you wish to use.
Cheers,
Christian