passcod/X.js — Issue #12: Markup injection
Author: passcod
Created: 2011-10-26 01:38:42+00:00
State: open

Should have (at least) two mechanisms to inject markup:

+ At init, for the whole page. It would be a way to completely replace the UI with a new one. Probably hard, with multiple issues.
+ At runtime, for parts of the page. Construct a document fragment or something and add it to a ns inside the doc (js-side, not markup) so it can be accessed by the scripts and injected on demand. Easy, but need to set up an in-page API/ns (might need to do that for images anyway, in the absence of virtual files).

Virtual files (#1) would solve most problems as the scripts could just AJAX them at will.

Markup languages?

+ HTML
+ Haml?
+ ???