zerovm / zpm

ZeroVM Package Manager
Apache License 2.0
6 stars 11 forks source link

Do not expand all UI files as Jinja2 templates #132

Closed mgeisler closed 10 years ago

mgeisler commented 10 years ago

When working with the video browser app, I ran into mgeisler/video-browser#6. That issue is blocked because zpm expands all UI files as Jinja2 templates.

I suggest that we only expand UI files ending in .tmpl or similar. We would then also rename the files after expanding them. So if zapp.yaml has

ui:
  - index.html.tmpl
  - somelib.js

then we would run index.html.tmpl through Jinja2 and store the result as index.html in the zapp. We would not modify somelib.js at all, just include it in the zapp.