dennisreimann / uiengine

Workbench for UI-driven development
https://uiengine.uix.space/
MIT License
366 stars 25 forks source link

Template placeholders for configuration values (e.g. application base path) #27

Closed JonasHavers closed 5 years ago

JonasHavers commented 6 years ago

Users should be able to reference configuration values (like the application base path) in HTML templates. The base path is configured in ui.base in uiengine.config.js. It would be great to be able to insert a template placeholder that is replaced with the configured base path at build time.

Example:

=>

To solve this with a template comment like <!-- uiengine:basepath --> or <!-- uiengine:config:base --> (which is probably not be the best solution in this case), the change would be made in core/src/builder.js I guess.