Commit 8531f664 authored by Guido van Rossum's avatar Guido van Rossum

Add tests for z:condition

parent b5b04b77
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<body xmlns:z="http://xml.zope.org/namespaces/tal" z:define="foo python:1"> <body xmlns:z="http://xml.zope.org/namespaces/tal" z:define="foo python:1">
<h1 z:insert="str:This Is The Replaced Title">This Is The Replaced Title</h1> <h1 z:condition="python:1" z:insert="str:This Is The Replaced Title">This Is The Replaced Title</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax --> <!-- examples adapted from TemplateAttributeLanguageSyntax -->
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<head>dadada</head> <head>dadada</head>
<body xmlns:z="http://xml.zope.org/namespaces/tal" z:define="foo python:1"> <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:insert="str:This Is The Replaced Title">Title</h1> <h1 z:condition="python:1" z:insert="str:This Is The Replaced Title">Title</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax --> <!-- examples adapted from TemplateAttributeLanguageSyntax -->
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<body xmlns:z="http://xml.zope.org/namespaces/tal" z:define="foo python:1"> <body xmlns:z="http://xml.zope.org/namespaces/tal" z:define="foo python:1">
<h1 z:insert="str:This Is The Replaced Title">This Is The Replaced Title</h1> <h1 z:condition="python:1" z:insert="str:This Is The Replaced Title">This Is The Replaced Title</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax --> <!-- examples adapted from TemplateAttributeLanguageSyntax -->
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<head>dadada</head> <head>dadada</head>
<body xmlns:z="http://xml.zope.org/namespaces/tal" z:define="foo python:1"> <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:insert="str:This Is The Replaced Title">Title</h1> <h1 z:condition="python:1" z:insert="str:This Is The Replaced Title">Title</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax --> <!-- examples adapted from TemplateAttributeLanguageSyntax -->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment