summaryrefslogtreecommitdiff
path: root/docs/tutorials/lxmlgraph/step03/myapp/templates
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-07-25 00:39:59 +0000
committerChris McDonough <chrism@agendaless.com>2008-07-25 00:39:59 +0000
commitf7c48fe00eb624432f11142897e18dd78df9f642 (patch)
treeacdff927434f7a4dcd41dc509e17192e0ed8bb02 /docs/tutorials/lxmlgraph/step03/myapp/templates
parent3c40c67500a765909d07c80339a76ede245a1d09 (diff)
downloadpyramid-f7c48fe00eb624432f11142897e18dd78df9f642.tar.gz
pyramid-f7c48fe00eb624432f11142897e18dd78df9f642.tar.bz2
pyramid-f7c48fe00eb624432f11142897e18dd78df9f642.zip
Work on Step 3.
Diffstat (limited to 'docs/tutorials/lxmlgraph/step03/myapp/templates')
-rw-r--r--docs/tutorials/lxmlgraph/step03/myapp/templates/default.pt8
-rw-r--r--docs/tutorials/lxmlgraph/step03/myapp/templates/xsltview.xsl12
2 files changed, 20 insertions, 0 deletions
diff --git a/docs/tutorials/lxmlgraph/step03/myapp/templates/default.pt b/docs/tutorials/lxmlgraph/step03/myapp/templates/default.pt
new file mode 100644
index 000000000..3cc98ef92
--- /dev/null
+++ b/docs/tutorials/lxmlgraph/step03/myapp/templates/default.pt
@@ -0,0 +1,8 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:tal="http://xml.zope.org/namespaces/tal">
+ <head></head>
+ <body>
+ <h1>My template is viewing item: ${name}</h1>
+ <p>The node has a tag name of: ${node.tag}.</p>
+ </body>
+</html>
diff --git a/docs/tutorials/lxmlgraph/step03/myapp/templates/xsltview.xsl b/docs/tutorials/lxmlgraph/step03/myapp/templates/xsltview.xsl
new file mode 100644
index 000000000..4d759b15b
--- /dev/null
+++ b/docs/tutorials/lxmlgraph/step03/myapp/templates/xsltview.xsl
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:template match="/document">
+ <html>
+ <head/>
+ <body>
+ <h1>My template is viewing item: <xsl:value-of select="@name"/></h1>
+ <p>The node has a name of: <xsl:value-of select="name()"/>.</p>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>