Coder Social home page Coder Social logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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 [email protected] on 26 Jul 2007 at 5:21

from base2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Are we ever going to implement this? :-)

Original comment by [email protected] on 17 Aug 2008 at 3:59

from base2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I still like the idea very much, but I don't see myself working on this this or 
next year...

Original comment by [email protected] on 18 Aug 2008 at 2:32

from base2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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 [email protected] on 12 Feb 2009 at 11:56

from base2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
There will be base2.require() and base2.exec() in base2 version 2.0.

Original comment by [email protected] on 16 Feb 2010 at 3:30

  • Changed state: Started
  • Added labels: Module-base2

from base2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.