On Thu, Feb 2, 2012 at 2:26 PM, lkcl luke <[email protected]> wrote: > On Thu, Feb 2, 2012 at 7:53 PM, C Anthony Risinger <[email protected]> wrote: >> On Thu, Feb 2, 2012 at 1:30 PM, lkcl luke <[email protected]> wrote: >>> >>> if people *do* have it, then it is an indication that they *want* it >>> to be loaded. >> >> hmm, i'm inclined to agree, because i'm against using the same >> top-level python for for both translation *and* pyjd (use same libs, >> different 15 line kickstart files), but i'm not sure about the HTML >> file, because with the exception of the bootstrap JS file, it should >> be identical? CSS, other meta tags, etc ... > > yes. what happens if you leave it in is that "whoops, boostrap.js > doesn't exist, oh dear" and you get the effect of success, no > duplicate app. > > why does this work? because public/* is supposed to be absolutely > identical to output/* .... with the exception of the compiled code.
maybe i've been using output/ instead of public/ in pyjd, and that's my issue. i don't recall off-hand ... seems likely. >> ... i want everything else to work, and not maintain 2 files that are >> identical, save a single line. how about a function in the pyjd >> module, say `pyjd.jsdisable(True)` > > now you have to work out how to implement that... in pyjs, MSHTML, > xulrunner _and_ pythonwebkit. > > why pyjs? because pyjs is supposed to be an exact mirror of pyjd. ... yeah, separate issue, but pyjd really should always (forcefully) be a statically linked module. HTTP request for a no-op module is painful ... same with __init__.py. >> or something better, that would >> tell pyjd to prevent bootstrap from loading? it could scan for a >> `data-pyjs-bootstrap` attribute and remove/disable the corresponding >> tag. could be False by default. > > ... which one? > > what happens if you *actually* want the same application to run? > > what happens if you want to start with one app then load another? yeah those are good points; i'll have to think about this more ... probably not necessary it seems. -- C Anthony

