You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by st...@outerthought.org on 2004/01/03 13:00:04 UTC

[WIKI-UPDATE] PythonScriptGenerator PythonLanguage CocoonDocsDrafts Sat Jan 3 13:00:04 2004

Page: http://wiki.cocoondev.org/Wiki.jsp?page=PythonScriptGenerator , version: 4 on Sat Jan  3 11:53:20 2004 by JoergHeinicke

- #Download the jython.jar [http://www.jython.org] and copy it to the web-inf directory of your webapp.
+ ! Download
+ Download the jython.jar from [http://www.jython.org] and put it into the WEB-INF/lib directory of your webapp. If you want to rebuild your Cocoon you should copy it also to the lib/local directory of your Cocoon sources, otherwise the JAR will be lost after the build.
+ 
- #Sitemap entry.
? ^

+ ! Sitemap entry.
? ^^

- 	{{{<map:match pattern="test.py">
- 		<map:generate src="test.py" type="script">
- 			<map:parameter name="key" value="Shark Attack"/>
- 		</map:generate>
- 		<map:serialize type="xml"/>
- </map:match>}}}
- #Python script.
+ <map:match pattern="test.py">
+   <map:generate src="test.py" type="script">
+     <map:parameter name="key" value="Shark Attack"/>
+   </map:generate>
+   <map:serialize type="xml"/>
+ </map:match>
+ }}}
+ ! Python script.
+ {{{
- output.append("<msg>" + value +"</msg>")}}}
?                                         ---

+ output.append("<msg>" + value +"</msg>")
+ }}}


Page: http://wiki.cocoondev.org/Wiki.jsp?page=PythonLanguage , version: 2 on Sat Jan  3 11:56:28 2004 by JoergHeinicke

+ # And thanks to [PythonScriptGenerator] you can use it easily inside of Cocoon.


Page: http://wiki.cocoondev.org/Wiki.jsp?page=CocoonDocsDrafts , version: 12 on Sat Jan  3 11:48:37 2004 by LaurentMauron

+ * [PythonScriptGenerator] -- A short ScriptGenerator how-to/example -- [LaurentMauron]