PageTemplate 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes +6 -3
- data/Rakefile +1 -1
- data/lib/PageTemplate/parser.rb +9 -2
- data/test.rb +11 -0
- metadata +1 -28
- data/site/Makefile +0 -15
- data/site/MySubpageRenderer.rb +0 -43
- data/site/PageNavRenderer.rb +0 -37
- data/site/RedClothRenderer.rb +0 -20
- data/site/Site.rb +0 -11
- data/site/SiteNewsRenderer.rb +0 -23
- data/site/XhtmlTemplateRenderer.rb +0 -141
- data/site/base.css +0 -4
- data/site/footer.txt +0 -2
- data/site/header.txt +0 -2
- data/site/html/SiteMap.html +0 -43
- data/site/html/base.css +0 -4
- data/site/html/designer.html +0 -524
- data/site/html/index.html +0 -267
- data/site/html/install.html +0 -125
- data/site/html/programmer.html +0 -289
- data/site/html/version2.html +0 -103
- data/site/src/SiteMap +0 -8
- data/site/src/designer +0 -410
- data/site/src/index +0 -165
- data/site/src/install +0 -80
- data/site/src/metadata.txt +0 -4
- data/site/src/programmer +0 -235
- data/site/src/version2 +0 -59
data/site/src/version2
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
# 'title' = 'PageTemplate Version 2'
|
2
|
-
# 'subtitle' = "What's New?"
|
3
|
-
|
4
|
-
Thanks largely to Greg Millam there is a new release of PageTemplate.
|
5
|
-
Thanks entirely to Greg Millam, it is a complete revamping of PT's
|
6
|
-
internal workings. While the basics of using PageTemplate as covered
|
7
|
-
by the other pages on this site are pretty much the same, a few things
|
8
|
-
have been added.
|
9
|
-
|
10
|
-
h2. New Features
|
11
|
-
|
12
|
-
h3. The Preprocessor
|
13
|
-
|
14
|
-
h4. @reverse@
|
15
|
-
|
16
|
-
Amaze your friends! Baffle your enemies! Discover palindromes in your spare time!
|
17
|
-
|
18
|
-
This is a simple demonstration of the capabilities of PageTemplate's preprocessor. It prints out the
|
19
|
-
reversed string of the value being displayed.
|
20
|
-
|
21
|
-
<pre class="code">
|
22
|
-
Hello, [%var name%]. Your name spelled backwards is [%var name :reverse%].
|
23
|
-
</pre>
|
24
|
-
|
25
|
-
<pre class="sample">
|
26
|
-
Hello, Brian Wisti. Your name spelled backwards is itsiW nairB.
|
27
|
-
</pre>
|
28
|
-
|
29
|
-
h4. escapeHTML
|
30
|
-
|
31
|
-
<pre class="code">
|
32
|
-
Here comes some sample HTML escaped.
|
33
|
-
|
34
|
-
[%var html :escapeHTML %]
|
35
|
-
</pre>
|
36
|
-
|
37
|
-
Here comes some sample HTML escaped.
|
38
|
-
|
39
|
-
<p><a href='http://hack.your.email.ownzr.com/'>Update your <strong>PayPal</strong> account!</a></p>
|
40
|
-
|
41
|
-
h4. escapeURI
|
42
|
-
|
43
|
-
<pre>[%var url :escapeURI %]</pre>
|
44
|
-
|
45
|
-
And here's a URI-escaped string. Isn't the preprocessor great?
|
46
|
-
|
47
|
-
Brian+Wisti+%28contact+at+brianwisti%40rubyforge.org%29
|
48
|
-
|
49
|
-
h3. Case Directive
|
50
|
-
|
51
|
-
h3. Object-style Variable Access
|
52
|
-
|
53
|
-
h3. Handling Templates "On the Fly"
|
54
|
-
|
55
|
-
h2. Fixed Problems
|
56
|
-
|
57
|
-
h2. Additional Syntax
|
58
|
-
|
59
|
-
h3. More stuff for _in_
|