Project

General

Profile

Feature #69

Updated by koszko almost 2 years ago

Consider fixes like that for Google Sheets[1]. They heavily use `document.createElement()` to construct parts of user interface in javascript. While this works, it is not as convenient, as if the interface was specified using actual HTML/XML code. Bundling pieces of HTML/XML would allow us to focus only on important things in actual scripts.

The ability to bundle other kinds of data (plain text, JSON, images, other binary files) would also be useful.

It is yet to be decided how bundled data files should be injected into page. Perhaps it would be possible to use something like `<script type="application/octet-stream">**data goes here**</script>` appended at the end of document's body? Perhaps it would be safer to make the data available straight to injected scripts through global variables? Or perhaps it should be injected into DOM as base64-encoded embedded files?

Please share your thoughts.

In case of doubt, this relates to the [[Hydrilla:Repository API|new API]]
thoughts

[1] https://git.koszko.org/hachette_fixes_tmp/tree/phttps___docs.google.com_spreadsheets_d___.json

Back