You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by di...@apache.org on 2001/04/11 22:08:25 UTC
cvs commit: xml-cocoon/webapp/templates hello-page.vm
dims 01/04/11 13:08:25
Modified: src/org/apache/cocoon/environment/http Tag: xml-cocoon2
HttpContext.java
webapp Tag: xml-cocoon2 sitemap.xmap
webapp/docs/samples Tag: xml-cocoon2 samples.xml
Added: lib Tag: xml-cocoon2 velocity-1.0.1-rc1.jar
src/org/apache/cocoon/generation Tag: xml-cocoon2
VelocityGenerator.java
webapp/templates Tag: xml-cocoon2 hello-page.vm
Log:
Adding a Generator and sample for Velocity Templates.
Revision Changes Path
No revision
No revision
1.1.2.1 +1429 -0 xml-cocoon/lib/Attic/velocity-1.0.1-rc1.jar
<<Binary file>>
No revision
No revision
1.1.2.2 +5 -0 xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpContext.java
Index: HttpContext.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpContext.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- HttpContext.java 2001/03/30 17:14:28 1.1.2.1
+++ HttpContext.java 2001/04/11 20:08:22 1.1.2.2
@@ -40,6 +40,11 @@
return servletContext.getResource(path);
}
+ public String getRealPath(String path)
+ throws MalformedURLException {
+ return servletContext.getRealPath(path);
+ }
+
public java.lang.String getMimeType(String file) {
return servletContext.getMimeType(file);
}
No revision
No revision
1.1.2.1 +99 -0 xml-cocoon/src/org/apache/cocoon/generation/Attic/VelocityGenerator.java
No revision
No revision
1.1.2.48 +7 -0 xml-cocoon/webapp/Attic/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon/webapp/Attic/sitemap.xmap,v
retrieving revision 1.1.2.47
retrieving revision 1.1.2.48
diff -u -r1.1.2.47 -r1.1.2.48
--- sitemap.xmap 2001/03/10 15:48:41 1.1.2.47
+++ sitemap.xmap 2001/04/11 20:08:24 1.1.2.48
@@ -14,6 +14,7 @@
<map:generator name="status" src="org.apache.cocoon.generation.StatusGenerator"/>
<map:generator name="extractor" src="org.apache.cocoon.generation.FragmentExtractorGenerator"/>
<map:generator name="script" src="org.apache.cocoon.generation.ScriptGenerator"/>
+ <map:generator name="velocity" src="org.apache.cocoon.generation.VelocityGenerator"/>
</map:generators>
<map:transformers default="xslt">
@@ -229,6 +230,12 @@
<map:match pattern="scripts/*">
<map:generate type="script" src="docs/samples/scripts/{1}"/>
+ <map:transform src="stylesheets/page/simple-page2html.xsl"/>
+ <map:serialize type="html"/>
+ </map:match>
+
+ <map:match pattern="templates/*">
+ <map:generate type="velocity" src="{1}"/>
<map:transform src="stylesheets/page/simple-page2html.xsl"/>
<map:serialize type="html"/>
</map:match>
No revision
No revision
1.1.2.16 +3 -0 xml-cocoon/webapp/docs/samples/Attic/samples.xml
Index: samples.xml
===================================================================
RCS file: /home/cvs/xml-cocoon/webapp/docs/samples/Attic/samples.xml,v
retrieving revision 1.1.2.15
retrieving revision 1.1.2.16
diff -u -r1.1.2.15 -r1.1.2.16
--- samples.xml 2001/03/08 15:32:17 1.1.2.15
+++ samples.xml 2001/04/11 20:08:24 1.1.2.16
@@ -82,6 +82,9 @@
<sample name="File Uploads" href="xsp/upload" xlink:role="dynamic">
Sample to illustrate File uploads.
</sample>
+ <sample name="Velocity Generator" href="templates/hello-page.vm">
+ An example of the VelocityGenerator producing XML out of a Velocity Template.
+ </sample>
</group>
<group name="Sample Forms">
No revision
No revision
1.1.2.1 +7 -0 xml-cocoon/webapp/templates/Attic/hello-page.vm
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org