Commits

Ralph Bean committed 1c7e812

Default templates for kajiki and jinja.

  • Participants
  • Parent commits 21c576b

Comments (0)

Files changed (12)

tw2/core/templates/csslink.jinja

+<link rel="stylesheet" type="text/css" href="{{w.link}}" media="{{w.media}}" />

tw2/core/templates/csslink.kajiki

+<link rel="stylesheet" type="text/css" href="$w.link" media="$w.media" />

tw2/core/templates/csssource.jinja

+<style type="text/css">{{w.src}}</style>

tw2/core/templates/csssource.kajiki

+<style type="text/css">$w.src</style>

tw2/core/templates/display_children.jinja

+<div {{w.attrs | xmlattr }}>
+    {% for c in w.children %}
+     {{c.display()}}
+    {% endfor %}
+</div>

tw2/core/templates/display_children.kajiki

+<div xmlns:py="http://genshi.edgewall.org/" py:attrs="w.attrs">
+    <py:for each="c in w.children">${c.display()}</py:for>
+</div>

tw2/core/templates/jslink.jinja

+<script type="text/javascript" src="{{w.link}}" {{w.attrs | xmlattr}}></script>

tw2/core/templates/jslink.kajiki

+<script xmlns:py="http://genshi.edgewall.org/" type="text/javascript" src="$w.link" py:attrs="w.attrs"></script>

tw2/core/templates/jssource.jinja

+<script type="text/javascript">{{w.src}}</script>

tw2/core/templates/jssource.kajiki

+<script type="text/javascript">$w.src</script>

tw2/core/templates/page.jinja

+<html>
+<head><title>{{w.title or ''}}</title></head>
+<body {{w.attrs | xmlattr}}><h1>{{w.title or ''}}</h1>
+{% if w.child %}
+{{w.child.display()}}
+{% endif %}
+</body>
+</html>

tw2/core/templates/page.kajiki

+<html xmlns:py="http://genshi.edgewall.org/">
+<head><title>$w.title</title></head>
+<body py:attrs="w.attrs"><h1>$w.title</h1>${w.child and w.child.display()}</body>
+</html>