diff --git a/doc/Jugl.js b/doc/Jugl.js index 70fa04c8cf..136613b355 100644 --- a/doc/Jugl.js +++ b/doc/Jugl.js @@ -1,74 +1,78 @@ /** - * Jugl.js -- JavaScript Template Attribute Language + * Jugl.js -- JavaScript Template Library * This code is not yet licensed for release or distribution. * * Copyright 2007 Tim Schaub */ -/** - * Contains portions of OpenLayers.js -- OpenLayers Map Viewer Library - * - * Copyright 2005-2006 MetaCarta, Inc., released under a modified BSD license. - * Please see http://svn.openlayers.org/trunk/openlayers/repository-license.txt - * for the full text of the license. - */ - -/** - * Contains portions of Prototype.js: - * - * Prototype JavaScript framework, version 1.4.0 - * (c) 2005 Sam Stephenson - * - * Prototype is freely distributable under the terms of an MIT-style license. - * For details, see the Prototype web site: http://prototype.conio.net/ - */ - -(function(){var uri="http://jugl.tschaub.net/trunk/lib/Jugl.js";var Jugl={singleFile:true};window[uri]=Jugl;})();(function(){var uri="http://jugl.tschaub.net/trunk/lib/Jugl.js";var singleFile=(typeof window[uri]=="object"&&window[uri].singleFile);var Jugl={prefix:"jugl",namespaceURI:"http://namespace.jugl.org/",scriptName:(!singleFile)?"lib/Jugl.js":"Jugl.js",getScriptLocation:function(){var scriptLocation="";var scriptName=Jugl.scriptName;var scripts=document.getElementsByTagName('script');for(var i=0;i-1)&&(index+scriptName.length==src.length)){scriptLocation=src.slice(0,-scriptName.length);break;}}} -return scriptLocation;}};if(!singleFile){var jsfiles=new Array("Jugl/Util.js","Jugl/Class.js","Jugl/Async.js","Jugl/Node.js","Jugl/Attribute.js","Jugl/Console.js","Jugl/Template.js");var allScriptTags="";var host=Jugl.getScriptLocation()+"lib/";for(var i=0;i";allScriptTags+=currentScriptTag;}else{var s=document.createElement("script");s.src=host+jsfiles[i];var h=document.getElementsByTagName("head").length?document.getElementsByTagName("head")[0]:document.body;h.appendChild(s);}} -if(allScriptTags){document.write(allScriptTags);}} -window[uri]=Jugl;})();(function(){var uri="http://jugl.tschaub.net/trunk/lib/Jugl.js";var Jugl=window[uri];Jugl.Class=function(){var Class=function(){this.initialize.apply(this,arguments);} -var extended={};var parent;for(var i=0;i OL Docs @@ -19,36 +60,36 @@ var Jugl = window[uri]; // this part does the actual template processing window.onload = function() { - var template = new Jugl.Template("basic"); - template.process(); + var template = new Jugl.Template("template"); + var node = template.process(null, true); + document.getElementById("examples").appendChild(node); + document.getElementById("exwin").src = "../examples/example.html"; } -