Use a templating system for html pages #297
Replies: 4 comments
-
LOVE this idea... maybe may it an option in the generator though instead of forced? If someone isn't familiar with handlebars (or whatever else is chosen), it would require they learn it. Making it optional, even if default=yes, would avoid the forcing function. Maybe merge with #100? |
Beta Was this translation helpful? Give feedback.
-
Yes, let's discuss a decent approach. It could also make sense to have this with the more modular build pipeline discussed in the gitter conversation, allowing us to make template plugins? |
Beta Was this translation helpful? Give feedback.
-
The easiest way to get this is to use gulp-file-include ...
<body>
@@include('./header.html')
Content
@@include('./footer.html')
</body>
...
A simple gulp task will then compile this to the final HTML and no one need to learn anything other than writing HTML. |
Beta Was this translation helpful? Give feedback.
-
Thanks @StfBauer - that would be one way of doing templating. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Currently static html pages are used for rendering the tabs and pages. Some things get's hardcoded in those such as application insights, CSS etc. To update that you need to modify n similar html files.
Describe the solution you'd like
Implement some kind of templating system so there is a master html page
Describe alternatives you've considered
PIck one... https://expressjs.com/en/resources/template-engines.html.
express-handlebars
looks like a simple and good optionBeta Was this translation helpful? Give feedback.
All reactions