PageTemplate 2.1.5 → 2.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- &lt;p&gt;&lt;a href='http://hack.your.email.ownzr.com/'&gt;Update your &lt;strong&gt;PayPal&lt;/strong&gt; account!&lt;/a&gt;&lt;/p&gt;
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_