You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
When deploying a zapp, we now only treat UI file ending in .tmpl as
Jinja2 templates. Other files are uploaded verbatim.
Testing with more than one UI file showed that we implictly depended
on the order of iteration over the set returned by _find_ui_uploads.
Sets are unordered, so the tests would fail. We now return a list
instead to get deterministic output.
When deploying a zapp, we now only treat UI file ending in .tmpl as
Jinja2 templates. Other files are uploaded verbatim.
Testing with more than one UI file showed that we implictly depended
on the order of iteration over the set returned by _find_ui_uploads.
Sets are unordered, so the tests would fail. We now return a list
instead to get deterministic output.
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 ifzapp.yaml
hasthen we would run
index.html.tmpl
through Jinja2 and store the result asindex.html
in the zapp. We would not modifysomelib.js
at all, just include it in the zapp.The text was updated successfully, but these errors were encountered: