File: templates.kid

package info (click to toggle)
kid 0.9.6-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,264 kB
  • ctags: 4,633
  • sloc: python: 7,417; makefile: 120; sh: 47; xml: 4
file content (18 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="utf-8"?>
<doesnt-event-matter-i-guess xmlns:py="http://purl.org/kid/ns#">
  
  <test1 py:def="template1()"><p>This is a test</p></test1>

  <test2 py:def="template2(text)"><p py:content="text"/></test2>
  
  <test3 py:def="template3(header, mapping)">
    <h1 py:content="header"/>
    <dl>
      <omit py:for="k,v in mapping.items()" py:strip="">
      <dt py:content="k"/>
      <dd py:content="v"/>
      </omit>
    </dl>
  </test3>
  
</doesnt-event-matter-i-guess>