flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS] index html template vars
Date Wed, 30 Nov 2016 16:16:11 GMT

On 11/30/16, 1:52 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlos.rovira@codeoscopic.com> wrote:

>Are you saying we could make a bead to decorate the index.html...don't
>understand exactly the proposed solution. I thought beads was something
>inside the framework, nothing to do in the html template...

A bead wouldn't directly update the index.html, but it can:

1) use the <inject_html> to inject stuff into the <head> (see
Mobile/src/main/flex/org/apache/cordova/Application.as for an example)
2) run JavaScript that could add <link> tags at runtime.  There isn't a
good example for this, but I don't see why it couldn't be done.
BrowserScroller.as even uses eval() on the SWF side to muck with the
SWFObject wrapper.

I guess it would depend a bit on whether the link data is static or
dynamically computed.  Some people may not like having this sort of
configuration in the code instead of in compiler switches or whatever, but
IMO, a compiler's job is to compile and not leak into the area of build
and deployment.

My 2 cents,

View raw message