Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
236ef253
Commit
236ef253
authored
Mar 16, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change tal:insert -> tal:content
parent
00228391
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
80 additions
and
80 deletions
+80
-80
lib/python/TAL/test/out1.html
lib/python/TAL/test/out1.html
+8
-8
lib/python/TAL/test/out1.xml
lib/python/TAL/test/out1.xml
+8
-8
lib/python/TAL/test/out3.html
lib/python/TAL/test/out3.html
+3
-3
lib/python/TAL/test/out3.xml
lib/python/TAL/test/out3.xml
+3
-3
lib/python/TAL/test/test1.html
lib/python/TAL/test/test1.html
+6
-6
lib/python/TAL/test/test1.xml
lib/python/TAL/test/test1.xml
+6
-6
lib/python/TAL/test/test3.html
lib/python/TAL/test/test3.html
+3
-3
lib/python/TAL/test/test3.xml
lib/python/TAL/test/test3.xml
+3
-3
lib/python/TAL/tests/out1.html
lib/python/TAL/tests/out1.html
+8
-8
lib/python/TAL/tests/out1.xml
lib/python/TAL/tests/out1.xml
+8
-8
lib/python/TAL/tests/out3.html
lib/python/TAL/tests/out3.html
+3
-3
lib/python/TAL/tests/out3.xml
lib/python/TAL/tests/out3.xml
+3
-3
lib/python/TAL/tests/test1.html
lib/python/TAL/tests/test1.html
+6
-6
lib/python/TAL/tests/test1.xml
lib/python/TAL/tests/test1.xml
+6
-6
lib/python/TAL/tests/test3.html
lib/python/TAL/tests/test3.html
+3
-3
lib/python/TAL/tests/test3.xml
lib/python/TAL/tests/test3.xml
+3
-3
No files found.
lib/python/TAL/test/out1.html
View file @
236ef253
...
...
@@ -6,7 +6,7 @@
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo python:1"
>
<h1
z:condition=
"python:1"
z:
inser
t=
"str:This
<h1
z:condition=
"python:1"
z:
conten
t=
"str:This
Is
The
Replaced
...
...
@@ -17,9 +17,9 @@ Title">This</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:
inser
t=
"str:here/id"
>
here/id
</span>
<span
z:
conten
t=
"str:here/id"
>
here/id
</span>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
inser
t=
"text var:five"
>
5
</p>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
conten
t=
"text var:five"
>
5
</p>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
honda
...
...
@@ -37,13 +37,13 @@ Title">This</h1>
<ul>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
honda
</li>
<li
z:
conten
t=
"var:car"
>
honda
</li>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
subaru
</li>
<li
z:
conten
t=
"var:car"
>
subaru
</li>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
acura
</li>
<li
z:
conten
t=
"var:car"
>
acura
</li>
</span>
</ul>
...
...
@@ -53,14 +53,14 @@ Title">This</h1>
<a
z:attributes=
"href python:'http://python.org' "
href=
"http://python.org"
>
python
</a>
<!-- test insert/replace structure -->
<span
z:
inser
t=
"structure python:None"
></span>
<span
z:
conten
t=
"structure python:None"
></span>
<span
z:define=
"global x str:<h3>Header Level 3</h3>"
/>
<span
z:define=
"global x python:'&' + 'nbsp;;' + x"
/>
<h3>
Header Level 3
</h3>
<span
z:
inser
t=
"structure x"
>
<h3>
Header Level 3
</h3></span>
<span
z:
conten
t=
"structure x"
>
<h3>
Header Level 3
</h3></span>
</body>
...
...
lib/python/TAL/test/out1.xml
View file @
236ef253
...
...
@@ -8,16 +8,16 @@
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo python:1"
>
<h1
z:condition=
"python:1"
z:
inser
t=
"str:This Is The Replaced Title"
>
This Is The Replaced Title
</h1>
<h1
z:condition=
"python:1"
z:
conten
t=
"str:This Is The Replaced Title"
>
This Is The Replaced Title
</h1>
<!-- test entity references -->
&HarryPotter;
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:
inser
t=
"str:here/id"
>
here/id
</span>
<span
z:
conten
t=
"str:here/id"
>
here/id
</span>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
inser
t=
"text var:five"
>
5
</p>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
conten
t=
"text var:five"
>
5
</p>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
honda
...
...
@@ -35,13 +35,13 @@
<ul>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
honda
</li>
<li
z:
conten
t=
"var:car"
>
honda
</li>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
subaru
</li>
<li
z:
conten
t=
"var:car"
>
subaru
</li>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
acura
</li>
<li
z:
conten
t=
"var:car"
>
acura
</li>
</span>
</ul>
...
...
@@ -51,14 +51,14 @@
<a
z:attributes=
"href python:'http://python.org' "
href=
"http://python.org"
>
python
</a>
<!-- test insert/replace structure -->
<span
z:
inser
t=
"structure python:None"
></span>
<span
z:
conten
t=
"structure python:None"
></span>
<span
z:define=
"global x str:<h3>Header Level 3</h3>"
/>
<span
z:define=
"global x python:'&' + 'nbsp;;' + x"
/>
<h3>
Header Level 3
</h3>
<span
z:
inser
t=
"structure x"
>
<h3>
Header Level 3
</h3></span>
<span
z:
conten
t=
"structure x"
>
<h3>
Header Level 3
</h3></span>
</body>
...
...
lib/python/TAL/test/out3.html
View file @
236ef253
<?xml version="1.0" ?>
<p
xmlns:z=
"http://xml.zope.org/namespaces/tal"
>
<span
z:define=
"local x str:hello brave new world"
>
<span
z:
inser
t=
"text local:x"
>
hello brave new world
</span>
<span
z:
conten
t=
"text local:x"
>
hello brave new world
</span>
<span
z:define=
"local x str:goodbye cruel world"
>
<span
z:
inser
t=
"text local:x"
>
goodbye cruel world
</span>
<span
z:
conten
t=
"text local:x"
>
goodbye cruel world
</span>
</span>
<span
z:
inser
t=
"text local:x"
>
hello brave new world
</span>
<span
z:
conten
t=
"text local:x"
>
hello brave new world
</span>
</span>
</p>
lib/python/TAL/test/out3.xml
View file @
236ef253
<?xml version="1.0" ?>
<p
xmlns:z=
"http://xml.zope.org/namespaces/tal"
>
<span
z:define=
"local x str:hello brave new world"
>
<span
z:
inser
t=
"text local:x"
>
hello brave new world
</span>
<span
z:
conten
t=
"text local:x"
>
hello brave new world
</span>
<span
z:define=
"local x str:goodbye cruel world"
>
<span
z:
inser
t=
"text local:x"
>
goodbye cruel world
</span>
<span
z:
conten
t=
"text local:x"
>
goodbye cruel world
</span>
</span>
<span
z:
inser
t=
"text local:x"
>
hello brave new world
</span>
<span
z:
conten
t=
"text local:x"
>
hello brave new world
</span>
</span>
</p>
lib/python/TAL/test/test1.html
View file @
236ef253
...
...
@@ -8,7 +8,7 @@
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo python:1"
>
<h1
z:condition=
"python:0"
>
This title is not displayed
</h1>
<h1
z:condition=
"python:1"
z:
inser
t=
"str:This
<h1
z:condition=
"python:1"
z:
conten
t=
"str:This
Is
The
Replaced
...
...
@@ -19,9 +19,9 @@ Title">Title</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:
inser
t=
"str:here/id"
/>
<span
z:
conten
t=
"str:here/id"
/>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
inser
t=
"text var:five"
/>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
conten
t=
"text var:five"
/>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<span
z:replace=
"var:car"
/>
...
...
@@ -33,7 +33,7 @@ Title">Title</h1>
<ul>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
Car Name
</li>
<li
z:
conten
t=
"var:car"
>
Car Name
</li>
</span>
</ul>
...
...
@@ -43,14 +43,14 @@ Title">Title</h1>
<a
z:attributes=
"href python:'http://python.org' "
>
python
</a>
<!-- test insert/replace structure -->
<span
z:
inser
t=
"structure python:None"
/>
<span
z:
conten
t=
"structure python:None"
/>
<span
z:replace=
"structure python:None"
/>
<span
z:define=
"global x str:<h3>Header Level 3</h3>"
/>
<span
z:define=
"global x python:'&' + 'nbsp;;' + x"
/>
<span
z:replace=
"structure x"
/>
<span
z:
inser
t=
"structure x"
/>
<span
z:
conten
t=
"structure x"
/>
</body>
...
...
lib/python/TAL/test/test1.xml
View file @
236ef253
...
...
@@ -8,7 +8,7 @@
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo python:1"
>
<h1
z:condition=
"python:0"
>
This title is not displayed
</h1>
<h1
z:condition=
"python:1"
z:
inser
t=
"str:This
<h1
z:condition=
"python:1"
z:
conten
t=
"str:This
Is
The
Replaced
...
...
@@ -19,9 +19,9 @@ Title">Title</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:
inser
t=
"str:here/id"
/>
<span
z:
conten
t=
"str:here/id"
/>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
inser
t=
"text var:five"
/>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
conten
t=
"text var:five"
/>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<span
z:replace=
"var:car"
/>
...
...
@@ -33,7 +33,7 @@ Title">Title</h1>
<ul>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
Car Name
</li>
<li
z:
conten
t=
"var:car"
>
Car Name
</li>
</span>
</ul>
...
...
@@ -43,14 +43,14 @@ Title">Title</h1>
<a
z:attributes=
"href python:'http://python.org' "
>
python
</a>
<!-- test insert/replace structure -->
<span
z:
inser
t=
"structure python:None"
/>
<span
z:
conten
t=
"structure python:None"
/>
<span
z:replace=
"structure python:None"
/>
<span
z:define=
"global x str:<h3>Header Level 3</h3>"
/>
<span
z:define=
"global x python:'&' + 'nbsp;;' + x"
/>
<span
z:replace=
"structure x"
/>
<span
z:
inser
t=
"structure x"
/>
<span
z:
conten
t=
"structure x"
/>
</body>
...
...
lib/python/TAL/test/test3.html
View file @
236ef253
<?xml version="1.0" ?>
<p
xmlns:z=
"http://xml.zope.org/namespaces/tal"
>
<span
z:define=
"local x str:hello brave new world"
>
<span
z:
inser
t=
"text local:x"
>
outer variable x, first appearance
</span>
<span
z:
conten
t=
"text local:x"
>
outer variable x, first appearance
</span>
<span
z:define=
"local x str:goodbye cruel world"
>
<span
z:
inser
t=
"text local:x"
>
inner variable x
</span>
<span
z:
conten
t=
"text local:x"
>
inner variable x
</span>
</span>
<span
z:
inser
t=
"text local:x"
>
outer variable x, second appearance
</span>
<span
z:
conten
t=
"text local:x"
>
outer variable x, second appearance
</span>
</span>
</p>
lib/python/TAL/test/test3.xml
View file @
236ef253
<?xml version="1.0" ?>
<p
xmlns:z=
"http://xml.zope.org/namespaces/tal"
>
<span
z:define=
"local x str:hello brave new world"
>
<span
z:
inser
t=
"text local:x"
>
outer variable x, first appearance
</span>
<span
z:
conten
t=
"text local:x"
>
outer variable x, first appearance
</span>
<span
z:define=
"local x str:goodbye cruel world"
>
<span
z:
inser
t=
"text local:x"
>
inner variable x
</span>
<span
z:
conten
t=
"text local:x"
>
inner variable x
</span>
</span>
<span
z:
inser
t=
"text local:x"
>
outer variable x, second appearance
</span>
<span
z:
conten
t=
"text local:x"
>
outer variable x, second appearance
</span>
</span>
</p>
lib/python/TAL/tests/out1.html
View file @
236ef253
...
...
@@ -6,7 +6,7 @@
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo python:1"
>
<h1
z:condition=
"python:1"
z:
inser
t=
"str:This
<h1
z:condition=
"python:1"
z:
conten
t=
"str:This
Is
The
Replaced
...
...
@@ -17,9 +17,9 @@ Title">This</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:
inser
t=
"str:here/id"
>
here/id
</span>
<span
z:
conten
t=
"str:here/id"
>
here/id
</span>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
inser
t=
"text var:five"
>
5
</p>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
conten
t=
"text var:five"
>
5
</p>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
honda
...
...
@@ -37,13 +37,13 @@ Title">This</h1>
<ul>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
honda
</li>
<li
z:
conten
t=
"var:car"
>
honda
</li>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
subaru
</li>
<li
z:
conten
t=
"var:car"
>
subaru
</li>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
acura
</li>
<li
z:
conten
t=
"var:car"
>
acura
</li>
</span>
</ul>
...
...
@@ -53,14 +53,14 @@ Title">This</h1>
<a
z:attributes=
"href python:'http://python.org' "
href=
"http://python.org"
>
python
</a>
<!-- test insert/replace structure -->
<span
z:
inser
t=
"structure python:None"
></span>
<span
z:
conten
t=
"structure python:None"
></span>
<span
z:define=
"global x str:<h3>Header Level 3</h3>"
/>
<span
z:define=
"global x python:'&' + 'nbsp;;' + x"
/>
<h3>
Header Level 3
</h3>
<span
z:
inser
t=
"structure x"
>
<h3>
Header Level 3
</h3></span>
<span
z:
conten
t=
"structure x"
>
<h3>
Header Level 3
</h3></span>
</body>
...
...
lib/python/TAL/tests/out1.xml
View file @
236ef253
...
...
@@ -8,16 +8,16 @@
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo python:1"
>
<h1
z:condition=
"python:1"
z:
inser
t=
"str:This Is The Replaced Title"
>
This Is The Replaced Title
</h1>
<h1
z:condition=
"python:1"
z:
conten
t=
"str:This Is The Replaced Title"
>
This Is The Replaced Title
</h1>
<!-- test entity references -->
&HarryPotter;
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:
inser
t=
"str:here/id"
>
here/id
</span>
<span
z:
conten
t=
"str:here/id"
>
here/id
</span>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
inser
t=
"text var:five"
>
5
</p>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
conten
t=
"text var:five"
>
5
</p>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
honda
...
...
@@ -35,13 +35,13 @@
<ul>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
honda
</li>
<li
z:
conten
t=
"var:car"
>
honda
</li>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
subaru
</li>
<li
z:
conten
t=
"var:car"
>
subaru
</li>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
acura
</li>
<li
z:
conten
t=
"var:car"
>
acura
</li>
</span>
</ul>
...
...
@@ -51,14 +51,14 @@
<a
z:attributes=
"href python:'http://python.org' "
href=
"http://python.org"
>
python
</a>
<!-- test insert/replace structure -->
<span
z:
inser
t=
"structure python:None"
></span>
<span
z:
conten
t=
"structure python:None"
></span>
<span
z:define=
"global x str:<h3>Header Level 3</h3>"
/>
<span
z:define=
"global x python:'&' + 'nbsp;;' + x"
/>
<h3>
Header Level 3
</h3>
<span
z:
inser
t=
"structure x"
>
<h3>
Header Level 3
</h3></span>
<span
z:
conten
t=
"structure x"
>
<h3>
Header Level 3
</h3></span>
</body>
...
...
lib/python/TAL/tests/out3.html
View file @
236ef253
<?xml version="1.0" ?>
<p
xmlns:z=
"http://xml.zope.org/namespaces/tal"
>
<span
z:define=
"local x str:hello brave new world"
>
<span
z:
inser
t=
"text local:x"
>
hello brave new world
</span>
<span
z:
conten
t=
"text local:x"
>
hello brave new world
</span>
<span
z:define=
"local x str:goodbye cruel world"
>
<span
z:
inser
t=
"text local:x"
>
goodbye cruel world
</span>
<span
z:
conten
t=
"text local:x"
>
goodbye cruel world
</span>
</span>
<span
z:
inser
t=
"text local:x"
>
hello brave new world
</span>
<span
z:
conten
t=
"text local:x"
>
hello brave new world
</span>
</span>
</p>
lib/python/TAL/tests/out3.xml
View file @
236ef253
<?xml version="1.0" ?>
<p
xmlns:z=
"http://xml.zope.org/namespaces/tal"
>
<span
z:define=
"local x str:hello brave new world"
>
<span
z:
inser
t=
"text local:x"
>
hello brave new world
</span>
<span
z:
conten
t=
"text local:x"
>
hello brave new world
</span>
<span
z:define=
"local x str:goodbye cruel world"
>
<span
z:
inser
t=
"text local:x"
>
goodbye cruel world
</span>
<span
z:
conten
t=
"text local:x"
>
goodbye cruel world
</span>
</span>
<span
z:
inser
t=
"text local:x"
>
hello brave new world
</span>
<span
z:
conten
t=
"text local:x"
>
hello brave new world
</span>
</span>
</p>
lib/python/TAL/tests/test1.html
View file @
236ef253
...
...
@@ -8,7 +8,7 @@
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo python:1"
>
<h1
z:condition=
"python:0"
>
This title is not displayed
</h1>
<h1
z:condition=
"python:1"
z:
inser
t=
"str:This
<h1
z:condition=
"python:1"
z:
conten
t=
"str:This
Is
The
Replaced
...
...
@@ -19,9 +19,9 @@ Title">Title</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:
inser
t=
"str:here/id"
/>
<span
z:
conten
t=
"str:here/id"
/>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
inser
t=
"text var:five"
/>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
conten
t=
"text var:five"
/>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<span
z:replace=
"var:car"
/>
...
...
@@ -33,7 +33,7 @@ Title">Title</h1>
<ul>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
Car Name
</li>
<li
z:
conten
t=
"var:car"
>
Car Name
</li>
</span>
</ul>
...
...
@@ -43,14 +43,14 @@ Title">Title</h1>
<a
z:attributes=
"href python:'http://python.org' "
>
python
</a>
<!-- test insert/replace structure -->
<span
z:
inser
t=
"structure python:None"
/>
<span
z:
conten
t=
"structure python:None"
/>
<span
z:replace=
"structure python:None"
/>
<span
z:define=
"global x str:<h3>Header Level 3</h3>"
/>
<span
z:define=
"global x python:'&' + 'nbsp;;' + x"
/>
<span
z:replace=
"structure x"
/>
<span
z:
inser
t=
"structure x"
/>
<span
z:
conten
t=
"structure x"
/>
</body>
...
...
lib/python/TAL/tests/test1.xml
View file @
236ef253
...
...
@@ -8,7 +8,7 @@
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo python:1"
>
<h1
z:condition=
"python:0"
>
This title is not displayed
</h1>
<h1
z:condition=
"python:1"
z:
inser
t=
"str:This
<h1
z:condition=
"python:1"
z:
conten
t=
"str:This
Is
The
Replaced
...
...
@@ -19,9 +19,9 @@ Title">Title</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:
inser
t=
"str:here/id"
/>
<span
z:
conten
t=
"str:here/id"
/>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
inser
t=
"text var:five"
/>
<p
z:define=
"x str:template/title; global five python:2+3;"
z:
conten
t=
"text var:five"
/>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<span
z:replace=
"var:car"
/>
...
...
@@ -33,7 +33,7 @@ Title">Title</h1>
<ul>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:
inser
t=
"var:car"
>
Car Name
</li>
<li
z:
conten
t=
"var:car"
>
Car Name
</li>
</span>
</ul>
...
...
@@ -43,14 +43,14 @@ Title">Title</h1>
<a
z:attributes=
"href python:'http://python.org' "
>
python
</a>
<!-- test insert/replace structure -->
<span
z:
inser
t=
"structure python:None"
/>
<span
z:
conten
t=
"structure python:None"
/>
<span
z:replace=
"structure python:None"
/>
<span
z:define=
"global x str:<h3>Header Level 3</h3>"
/>
<span
z:define=
"global x python:'&' + 'nbsp;;' + x"
/>
<span
z:replace=
"structure x"
/>
<span
z:
inser
t=
"structure x"
/>
<span
z:
conten
t=
"structure x"
/>
</body>
...
...
lib/python/TAL/tests/test3.html
View file @
236ef253
<?xml version="1.0" ?>
<p
xmlns:z=
"http://xml.zope.org/namespaces/tal"
>
<span
z:define=
"local x str:hello brave new world"
>
<span
z:
inser
t=
"text local:x"
>
outer variable x, first appearance
</span>
<span
z:
conten
t=
"text local:x"
>
outer variable x, first appearance
</span>
<span
z:define=
"local x str:goodbye cruel world"
>
<span
z:
inser
t=
"text local:x"
>
inner variable x
</span>
<span
z:
conten
t=
"text local:x"
>
inner variable x
</span>
</span>
<span
z:
inser
t=
"text local:x"
>
outer variable x, second appearance
</span>
<span
z:
conten
t=
"text local:x"
>
outer variable x, second appearance
</span>
</span>
</p>
lib/python/TAL/tests/test3.xml
View file @
236ef253
<?xml version="1.0" ?>
<p
xmlns:z=
"http://xml.zope.org/namespaces/tal"
>
<span
z:define=
"local x str:hello brave new world"
>
<span
z:
inser
t=
"text local:x"
>
outer variable x, first appearance
</span>
<span
z:
conten
t=
"text local:x"
>
outer variable x, first appearance
</span>
<span
z:define=
"local x str:goodbye cruel world"
>
<span
z:
inser
t=
"text local:x"
>
inner variable x
</span>
<span
z:
conten
t=
"text local:x"
>
inner variable x
</span>
</span>
<span
z:
inser
t=
"text local:x"
>
outer variable x, second appearance
</span>
<span
z:
conten
t=
"text local:x"
>
outer variable x, second appearance
</span>
</span>
</p>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment