[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate/tests/testpackage - content.py:1.4

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 21 11:19:59 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/pagetemplate/tests/testpackage
In directory cvs.zope.org:/tmp/cvs-serv8485/src/zope/app/pagetemplate/tests/testpackage

Modified Files:
	content.py 
Log Message:
Final HEAD checkin of "Inline Code Support in TAL". For detailed messages 
during the development, see "srichter-inlinepython-branch". I tested the 
code with both, Python 2.2.3 and Python 2.3 and all works fine.

Here an example of what you can do:

  <script type="text/server-python">
    print "Hello World!"
  </script>

and

 <p tal:script="text/server-python">
   print "Hello World!"
 </p>

A more elaborate example would be:

<html><body>
  <script type="text/server-python">
    global x
    x = "Hello World!"
  </script>
  <b tal:content="x" />
</body></html>

This support is currently only available in "Templated Pages" after you 
activate the hook using the "Inline Code" screen.


=== Zope3/src/zope/app/pagetemplate/tests/testpackage/content.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/pagetemplate/tests/testpackage/content.py:1.3	Tue Jul  1 13:31:02 2003
+++ Zope3/src/zope/app/pagetemplate/tests/testpackage/content.py	Thu Aug 21 10:19:28 2003
@@ -11,7 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Test Content
 
+$Id$
+"""
 from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
 
 class Content:




More information about the Zope3-Checkins mailing list