[Checkins] SVN: Sandbox/malthe/chameleon.html/src/chameleon/html/ XML-declarations are now printed for all top-level templates.
Malthe Borch
mborch at gmail.com
Tue Dec 2 08:40:03 EST 2008
Log message for revision 93540:
XML-declarations are now printed for all top-level templates.
Changed:
U Sandbox/malthe/chameleon.html/src/chameleon/html/language.txt
U Sandbox/malthe/chameleon.html/src/chameleon/html/template.txt
-=-
Modified: Sandbox/malthe/chameleon.html/src/chameleon/html/language.txt
===================================================================
--- Sandbox/malthe/chameleon.html/src/chameleon/html/language.txt 2008-12-02 13:39:40 UTC (rev 93539)
+++ Sandbox/malthe/chameleon.html/src/chameleon/html/language.txt 2008-12-02 13:40:03 UTC (rev 93540)
@@ -10,7 +10,7 @@
... <span>Default content</span>
... </div>
... </html>""", content={'document-content': u"Dynamic content"})
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
<div>Dynamic content</div>
</html>
@@ -24,7 +24,7 @@
... <span>Default content</span>
... </div>
... </html>""", content={})
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
<div>
<span>Default content</span>
</div>
@@ -39,7 +39,7 @@
... <span>Default content</span>
... </div>
... </html>""", content={'document-content': u"Dynamic content"})
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
Dynamic content
</html>
@@ -53,7 +53,7 @@
... <span>Default content</span>
... </div>
... </html>""", content={'document-content': u"<span>Dynamic content</span>"})
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
<div><span>Dynamic content</span></div>
</html>
@@ -67,7 +67,7 @@
... Content
... </div>
... </html>""", attributes={'example': {'class': 'example-class'}})
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
<div class="example-class">
Content
</div>
@@ -87,7 +87,7 @@
... Content
... </span>
... </html>""", attributes={'example': {'id': 'new', 'class': 'additional-class'}})
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
<div id="new" class="existing-class additional-class">
Content
</div>
@@ -107,7 +107,7 @@
... </div>
... </html>""", attributes={'example1': {'class': 'foo', 'style': 'bar'},
... 'example2': {'class': 'bar', 'style': 'foo'}})
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
<div style="foo" id="existing" class="existing-class foo bar">
Content
</div>
Modified: Sandbox/malthe/chameleon.html/src/chameleon/html/template.txt
===================================================================
--- Sandbox/malthe/chameleon.html/src/chameleon/html/template.txt 2008-12-02 13:39:40 UTC (rev 93539)
+++ Sandbox/malthe/chameleon.html/src/chameleon/html/template.txt 2008-12-02 13:40:03 UTC (rev 93540)
@@ -32,7 +32,7 @@
Passing these arguments by keyword, we can verify the rendered output.
>>> print template(content=content, attributes=attributes)
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Document title</title>
<!-- meta -->
@@ -67,7 +67,7 @@
the adapter.
>>> print template(context=object(), request=object())
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example layout</title>
<!-- meta -->
@@ -96,7 +96,7 @@
>>> from chameleon.core.config import SYMBOLS
>>> print template(**{
... SYMBOLS.slot+"title": u"Title from macro"})
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
...
<title>Title from macro</title>
...
@@ -111,7 +111,7 @@
>>> filename = os.path.join(path, 'layouts', 'example2.html')
>>> template = DynamicHTMLFile(filename)
>>> print template(context=object(), request=object())
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="http://host/one.css" rel="stylesheet" type="text/css" />
<link href="http://host/two.css" rel="stylesheet" type="text/css" />
More information about the Checkins
mailing list