Yesssss,

> however - i've got an idea.  what about *removing* the requirement to
> have bootstrap.js (entirely) from the public/ loader files, and having
> the pyjs compiler actually go and parse the HTML and put it in, when
> the file gets copied into the output/ folder??

Exactly! If there is no bootstrap.js to be loaded with pyjd why should
it be referenced in the html file! It must be injected by pyjs only.
Only this way we separate the two worlds in a clean way.

> or perhaps having it commented-out <!-- <script .... --> and the
> pyjsbuild process removing the comments when copying to output/ ?
>
> or perhaps having a comment-marker <!-- PYJSBOOTSTRAP -->
>
> the advantage of substitution is that in the case where
> --progress-loader=blahblah it's done entirely from the command-line,
> there's no need to go editing public/{loader}.html

Actually, it would suffice to add the script tag at the end of the
html file, just before the closing </body> tag. No comment marker
needed.

Ist the history iframe needed by pyjd? (sorry for my ignorance!) If
not we could leeave it out and append it together with the bootstrap
script, too.

Et cetera, et cetera. Cleanly separate the two worlds. Completely.

Peter

Reply via email to