Gustaf,

> the html template should look like. Should i use the helloworld
> example as a base? Maybe you should put the progress bar loader in
> there aswell  to show off how it works? Id like to put that in the
> showcase example too.

Actually, with my changes it should suffice that you come up with the
simplest, valid HTML file you can imagine
(<html><head>...</head><body>...</body></html>), Pyjamas will take
care of the rest at compile time. Of course, the helloworld and
helloworldsplash examples are a starting point. If you don't create an
HTML file on your own pyjs will create one for you.
The helloworldsplash example is something like a progress bar loader
implementation: It uses "bootstrap_progress.js" instead of
"bootstrap.js". See the examples/helloworldsplash/build.sh script, and
the __pygwt_earlyUser() function in bootstrap_progress.js on how this
is accomplished.

I'd like to make this easier for Pyjamas users: You'll notice that the
two bootstrap Javascript file are identical apart from the
__pygwt_earlyUser() function. Depending on whether you want none, an
actual progress bar, or a simple loader animation this function would
differ. I believe the logic of what to show could be injected into the
bootstrap.js file depending on, say, compiler switches (instead of
having two or more almost identical files being copied over to the
<my_app>/output folder).

Peter

Reply via email to