Author: doogie
Date: Fri Mar 13 02:29:38 2009 New Revision: 753091 URL: http://svn.apache.org/viewvc?rev=753091&view=rev Log: Demoing some parts of how webslinger functions. Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Groovy.groovy ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Java.jn ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Middle.vm ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Middle.groovy ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/SomeLeftMenu.vm ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm@/ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm@/section-LeftMenu ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm@/template ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/Middle.vm ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/Velocity.vm ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/index.vm ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm@/ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm@/is-filter ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Editable.vm ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm@/ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm@/section-LeftMenu Modified: ofbiz/trunk/framework/webslinger/websites/webslinger/www/index.whtml Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Groovy.groovy URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Groovy.groovy?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Groovy.groovy (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Groovy.groovy Fri Mar 13 02:29:38 2009 @@ -0,0 +1,4 @@ +webslinger.response.writer.println('groovy start') +println("groovy:This will appear on the console.") +webslinger.merge('Middle') +webslinger.response.writer.println('groovy end') Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Java.jn URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Java.jn?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Java.jn (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Java.jn Fri Mar 13 02:29:38 2009 @@ -0,0 +1,5 @@ +webslinger.getResponse().getWriter().println("java start"); +System.err.println("java:This will appear on the console."); +webslinger.merge("Middle"); +webslinger.getResponse().getWriter().println("java end"); +return null; Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Middle.vm URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Middle.vm?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Middle.vm (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Events/Middle.vm Fri Mar 13 02:29:38 2009 @@ -0,0 +1 @@ +Something in the middle of an event. Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Middle.groovy URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Middle.groovy?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Middle.groovy (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Middle.groovy Fri Mar 13 02:29:38 2009 @@ -0,0 +1 @@ +webslinger.response.writer.write("Howdy from groovy.") Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/SomeLeftMenu.vm URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/SomeLeftMenu.vm?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/SomeLeftMenu.vm (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/SomeLeftMenu.vm Fri Mar 13 02:29:38 2009 @@ -0,0 +1,6 @@ +<ul> + <li><a href="#">One</a></li> + <li><a href="#">Two</a></li> + <li><a href="#">Three</a></li> + <li><a href="#">Four</a></li> +</ul> Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm Fri Mar 13 02:29:38 2009 @@ -0,0 +1,3 @@ +<p> +Page by itself, or merged inside another. +</p> Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm@/section-LeftMenu URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm%40/section-LeftMenu?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm@/section-LeftMenu (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm@/section-LeftMenu Fri Mar 13 02:29:38 2009 @@ -0,0 +1 @@ +java.lang.String:SomeLeftMenu Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm@/template URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm%40/template?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm@/template (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/StandAlonePage.vm@/template Fri Mar 13 02:29:38 2009 @@ -0,0 +1 @@ +java.lang.String:TwoColumn Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/Middle.vm URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/Middle.vm?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/Middle.vm (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/Middle.vm Fri Mar 13 02:29:38 2009 @@ -0,0 +1 @@ +This is the middle of a template. Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/Velocity.vm URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/Velocity.vm?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/Velocity.vm (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/Templates/Velocity.vm Fri Mar 13 02:29:38 2009 @@ -0,0 +1,3 @@ +velocity start +#Merge("Middle") +velocity end Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/index.vm URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/index.vm?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/index.vm (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Showcase/index.vm Fri Mar 13 02:29:38 2009 @@ -0,0 +1,8 @@ +<pre> +#Merge("Events/Groovy") +#Merge("Events/Java") +#Merge("Templates/Velocity") +</pre> + +#Merge("Middle", "$ThemePath/Templates/Box/Blue") +#Merge("StandAlonePage") Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm Fri Mar 13 02:29:38 2009 @@ -0,0 +1,2 @@ +#set($boxStyle = $webslinger.pathInfo.split("/").get(1)) +<div class="box-$boxStyle">#Content()</div> Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm@/is-filter URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm%40/is-filter?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm@/is-filter (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Box.vm@/is-filter Fri Mar 13 02:29:38 2009 @@ -0,0 +1 @@ +java.lang.String:true Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Editable.vm URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Editable.vm?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Editable.vm (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/Editable.vm Fri Mar 13 02:29:38 2009 @@ -0,0 +1,2 @@ +#set($cause = $webslinger.planCause) +<div class="Editable" path="$cause.servletPath">#Content()</div> Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm Fri Mar 13 02:29:38 2009 @@ -0,0 +1,8 @@ +<div class="TwoColumn"> + <div class="TwoColumnLeft"> +#Section("LeftMenu") + </div> + <div class="TwoColumnContent"> +#Content("Editable") + </div> +</div> Added: ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm@/section-LeftMenu URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm%40/section-LeftMenu?rev=753091&view=auto ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm@/section-LeftMenu (added) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/Theme/Default/Templates/TwoColumn.vm@/section-LeftMenu Fri Mar 13 02:29:38 2009 @@ -0,0 +1 @@ +java.lang.String:/Includes/DefaultMenu Modified: ofbiz/trunk/framework/webslinger/websites/webslinger/www/index.whtml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/index.whtml?rev=753091&r1=753090&r2=753091&view=diff ============================================================================== --- ofbiz/trunk/framework/webslinger/websites/webslinger/www/index.whtml (original) +++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/index.whtml Fri Mar 13 02:29:38 2009 @@ -1,12 +1,8 @@ <p> -This page is brought to you by Webslinger! +Front page. </p> + <p> -It doesn't do a whole lot yet, but if you've gotten this far, here are the features that are available: +Look at the <a href="#viewurl("/Showcase/")">showcase</a>, and at a <a href="#viewurl("/Showcase/StandAlonePage")">standalone</a> page. </p> -<ul> - <li>Extension mapper</li> - <li>janino/groovy event handler</li> - <li>velocity template markup</li> - <li>template/wrapper/section content split</li> -</ul> + |
Free forum by Nabble | Edit this page |