annotate examples/bench/myghty/base.myt @ 744:cd6624cf2f7c trunk

Lots of `Transformer` cleanup: - Content-insertion transformations (before, after, etc.) now accept a callable. - `.prepend()` now ''only'' operates on elements. Previously it also operated on `OUTSIDE` marked events. - Where it makes sense, transformations are now ''consistently'' applied to individually selected objects in the document, rather than on any contiguous selection. This means that adjacent selected elements will be treated individually rather than as a whole. - Transformations should now consistently work on the context node. - `.substitute()` now defaults to a count of 0 (ie. all) rather than 1. This is to be consistent with Python's regex substitution. - `ATTR` events now have a `kind` of `ATTR` in addition to having this as their `mark`. - Added the `BREAK` `mark`. This allows cuts of otherwise seamlessly joined objects to be operated on. - Added a full test suite.
author athomas
date Mon, 09 Jun 2008 06:39:46 +0000
parents 2295fb564250
children
rev   line source
320
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
1 <!DOCTYPE html
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
5
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
6 <%method wrap>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
7 <%args scope="request">
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
8 title
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
9 </%args>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
10 <div id="header">
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
11 <h1><% title %></h1>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
12 </div>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
13
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
14 <% m.content() %>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
15
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
16 </%method>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
17
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
18 <div id="footer"></div>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
19 </html>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
20
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
21 <%method greeting>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
22 <%args>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
23 name
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
24 </%args>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
25 Hello, <% name | h %>
2295fb564250 Forgot to add myghty templates for [393].
cmlenz
parents:
diff changeset
26 </%method>
Copyright (C) 2012-2017 Edgewall Software