Open GoogleCodeExporter opened 8 years ago
This sounds great. Go ahead and build it. I like the idea that the linker is
built in
JavaScript. The php stuff has always been a temporary hack.
Original comment by dean.edw...@gmail.com
on 26 Jul 2007 at 5:21
Are we ever going to implement this? :-)
Original comment by dean.edw...@gmail.com
on 17 Aug 2008 at 3:59
I still like the idea very much, but I don't see myself working on this this or
next year...
Original comment by doek...@gmail.com
on 18 Aug 2008 at 2:32
Another approach would be using (X)HTML as a wrapper for Javascript, with
processing-instructions or link-elements to state dependencies, defines, etc.
The advantages:
- your JS editor probably understands JS in HTML too
- The (X)HTML parser takes care of most of the parsing
- Reasonably easy to add features
I've been using this approach for over a year. A source file could look like
this:
<?xml version="1.0"?>
<?xpl-param name="pkglibdir" value="{pkglibdir}"?>
<?xpl-param name="pkgdefaultlibdir" value="{pkgdefaultlibdir}"?>
<?xpl-require href="lib/Meeko/XBL.xhtml"?>
<?xpl-require href="HostRequest.xhtml"?>
<?xpl-prefetch href="{pkglibdir}/UI.js"?>
<?xpl-prefetch href="{pkglibdir}/UI.xml"?>
<?xpl-prefetch href="{pkglibdir}/WF2.xml"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
(function() {
var pkglibdir = xplContext.params["pkglibdir"];
var pkgdefaultlibdir = xplContext.params["pkgdefaultlibdir"];
xplSystem.prefetch[pkgdefaultlibdir + '/UI.js'] = xplSystem.prefetch[pkglibdir +
'/UI.js'];
xplSystem.prefetch[pkgdefaultlibdir + '/UI.xml'] = xplSystem.prefetch[pkglibdir +
'/UI.xml'];
xplSystem.prefetch[pkgdefaultlibdir + '/WF2.xml'] = xplSystem.prefetch[pkglibdir +
'/WF2.xml'];
})();
</script>
</head>
</html>
If you are interested I'd be happy to collaborate.
Original comment by shogu...@gmail.com
on 12 Feb 2009 at 11:56
There will be base2.require() and base2.exec() in base2 version 2.0.
Original comment by dean.edw...@gmail.com
on 16 Feb 2010 at 3:30
Original issue reported on code.google.com by
doek...@gmail.com
on 23 Jul 2007 at 9:07