annotate examples/includes/common/macros.html @ 554:161aa8a43b1f experimental-newctxt

New experimental branch for trying a different approach at context data stack management and simplified code evaluation/execution.
author cmlenz
date Mon, 02 Jul 2007 17:24:32 +0000
parents 24757b771651
children
rev   line source
230
24757b771651 Renamed Markup to Genshi in repository.
cmlenz
parents: 61
diff changeset
1 <div xmlns:py="http://genshi.edgewall.org/"
21
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
2 py:strip="">
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
3 <div py:def="macro1">reference me, please</div>
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
4 <div py:def="macro2(name, classname='expanded')" class="${classname}">
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
5 Hello ${name.title()}
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
6 </div>
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
7 <span py:match="greeting" class="greeting">
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
8 Hello ${select('@name')}
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
9 </span>
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
10 <span py:match="span[@class='greeting']" style="text-decoration: underline"
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
11 py:content="select('text()')"/>
eca77129518a * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
12 </div>
Copyright (C) 2012-2017 Edgewall Software