tenjin 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.txt +54 -0
  3. data/benchmark/bench.rb +502 -0
  4. data/benchmark/bench_context.rb +17 -0
  5. data/benchmark/bench_context.yaml +141 -0
  6. data/benchmark/templates/_footer.html +4 -0
  7. data/benchmark/templates/_header.html +52 -0
  8. data/benchmark/templates/bench_eruby.rhtml +29 -0
  9. data/benchmark/templates/bench_tenjin.rbhtml +29 -0
  10. data/bin/rbtenjin +449 -0
  11. data/doc-api/classes/Tenjin.html +141 -0
  12. data/doc-api/classes/Tenjin/ArrayBufferTemplate.html +270 -0
  13. data/doc-api/classes/Tenjin/BaseContext.html +312 -0
  14. data/doc-api/classes/Tenjin/Context.html +126 -0
  15. data/doc-api/classes/Tenjin/ContextHelper.html +433 -0
  16. data/doc-api/classes/Tenjin/Engine.html +616 -0
  17. data/doc-api/classes/Tenjin/ErubisTemplate.html +166 -0
  18. data/doc-api/classes/Tenjin/HtmlHelper.html +359 -0
  19. data/doc-api/classes/Tenjin/Preprocessor.html +242 -0
  20. data/doc-api/classes/Tenjin/Template.html +916 -0
  21. data/doc-api/created.rid +1 -0
  22. data/doc-api/files/README_txt.html +185 -0
  23. data/doc-api/files/lib/tenjin_rb.html +136 -0
  24. data/doc-api/fr_class_index.html +36 -0
  25. data/doc-api/fr_file_index.html +28 -0
  26. data/doc-api/fr_method_index.html +89 -0
  27. data/doc-api/index.html +24 -0
  28. data/doc-api/rdoc-style.css +208 -0
  29. data/doc/docstyle.css +188 -0
  30. data/doc/examples.html +312 -0
  31. data/doc/faq.html +909 -0
  32. data/doc/users-guide.html +1691 -0
  33. data/lib/tenjin.rb +959 -0
  34. data/setup.rb +1331 -0
  35. data/tenjin.gemspec +58 -0
  36. data/test/assert-text-equal.rb +45 -0
  37. data/test/data/examples/form/create.rbhtml +4 -0
  38. data/test/data/examples/form/form.rbhtml +14 -0
  39. data/test/data/examples/form/layout.rbhtml +8 -0
  40. data/test/data/examples/form/main.rb +9 -0
  41. data/test/data/examples/form/main.result +21 -0
  42. data/test/data/examples/form/update.rbhtml +4 -0
  43. data/test/data/examples/preprocessing/helper.rb +16 -0
  44. data/test/data/examples/preprocessing/main.rb +11 -0
  45. data/test/data/examples/preprocessing/main.result +17 -0
  46. data/test/data/examples/preprocessing/select.rbhtml +15 -0
  47. data/test/data/examples/preprocessing/select_P.result +18 -0
  48. data/test/data/examples/table/table.rb +9 -0
  49. data/test/data/examples/table/table.rbhtml +16 -0
  50. data/test/data/examples/table/table.result +20 -0
  51. data/test/data/examples/table/table_s.result +18 -0
  52. data/test/data/faq/ex1.rbhtml +5 -0
  53. data/test/data/faq/ex10-baselayout.rbhtml +27 -0
  54. data/test/data/faq/ex10-content.rbhtml +12 -0
  55. data/test/data/faq/ex10-customlayout.rbhtml +11 -0
  56. data/test/data/faq/ex10_inherit.result +25 -0
  57. data/test/data/faq/ex11-bench.rb +28 -0
  58. data/test/data/faq/ex11-content.rbhtml +9 -0
  59. data/test/data/faq/ex11-layout1.rbhtml +5 -0
  60. data/test/data/faq/ex11-layout2.rbhtml +6 -0
  61. data/test/data/faq/ex11.rb +5 -0
  62. data/test/data/faq/ex11.rbhtml +8 -0
  63. data/test/data/faq/ex11.source +11 -0
  64. data/test/data/faq/ex11_arraybuffer.result +15 -0
  65. data/test/data/faq/ex1_chksyntax.result +3 -0
  66. data/test/data/faq/ex2-content.rbhtml +3 -0
  67. data/test/data/faq/ex2-layout.rbhtml +11 -0
  68. data/test/data/faq/ex2_removenl.result +19 -0
  69. data/test/data/faq/ex3.rb +4 -0
  70. data/test/data/faq/ex3.rbhtml +1 -0
  71. data/test/data/faq/ex3_escapefunc1.result +2 -0
  72. data/test/data/faq/ex3_escapefunc2.result +2 -0
  73. data/test/data/faq/ex5.rbhtml +7 -0
  74. data/test/data/faq/ex5_template_args.source +9 -0
  75. data/test/data/faq/ex6-content.rhtml +6 -0
  76. data/test/data/faq/ex6-layout.rhtml +6 -0
  77. data/test/data/faq/ex6.rb +10 -0
  78. data/test/data/faq/ex6_eruby.result +12 -0
  79. data/test/data/faq/ex7-expr-pattern.rb +34 -0
  80. data/test/data/faq/ex7-expr-pattern.rbhtml +3 -0
  81. data/test/data/faq/ex7_expr_pattern.result +4 -0
  82. data/test/data/faq/ex8-m18n.rb +77 -0
  83. data/test/data/faq/ex8-m18n.rbhtml +4 -0
  84. data/test/data/faq/ex8_m18n.result +10 -0
  85. data/test/data/faq/ex9-baselayout.rbhtml +8 -0
  86. data/test/data/faq/ex9-content.rbhtml +6 -0
  87. data/test/data/faq/ex9-mylayout.rbhtml +5 -0
  88. data/test/data/faq/ex9_changelayout.result +11 -0
  89. data/test/data/users_guide/content6.rbhtml +3 -0
  90. data/test/data/users_guide/content7.rbhtml +5 -0
  91. data/test/data/users_guide/content8.rbhtml +2 -0
  92. data/test/data/users_guide/contextdata.rb +7 -0
  93. data/test/data/users_guide/datafile.rb +5 -0
  94. data/test/data/users_guide/datafile.yaml +10 -0
  95. data/test/data/users_guide/ex.rbhtml +6 -0
  96. data/test/data/users_guide/ex.result +7 -0
  97. data/test/data/users_guide/ex.script +5 -0
  98. data/test/data/users_guide/ex_script.result +7 -0
  99. data/test/data/users_guide/ex_source.result +8 -0
  100. data/test/data/users_guide/example1.rbhtml +12 -0
  101. data/test/data/users_guide/example1.result +17 -0
  102. data/test/data/users_guide/example10.rbhtml +4 -0
  103. data/test/data/users_guide/example10_template_args.result +6 -0
  104. data/test/data/users_guide/example11.rbhtml +5 -0
  105. data/test/data/users_guide/example11_template_args_result +2 -0
  106. data/test/data/users_guide/example12.rbhtml +12 -0
  107. data/test/data/users_guide/example12_preprocessed.result +10 -0
  108. data/test/data/users_guide/example12_preprocessed_source.result +10 -0
  109. data/test/data/users_guide/example13.rbhtml +6 -0
  110. data/test/data/users_guide/example13_preprocessed.result +2 -0
  111. data/test/data/users_guide/example13_preprocessed_source.result +2 -0
  112. data/test/data/users_guide/example14.rb +32 -0
  113. data/test/data/users_guide/example14.rbhtml +6 -0
  114. data/test/data/users_guide/example14_tmplclass.result +15 -0
  115. data/test/data/users_guide/example15.rb +10 -0
  116. data/test/data/users_guide/example15_escapefunc.result +14 -0
  117. data/test/data/users_guide/example16.rbhtml +4 -0
  118. data/test/data/users_guide/example16a.rb +10 -0
  119. data/test/data/users_guide/example16a.result +4 -0
  120. data/test/data/users_guide/example16b.rb +13 -0
  121. data/test/data/users_guide/example16b.result +4 -0
  122. data/test/data/users_guide/example16c.rb +12 -0
  123. data/test/data/users_guide/example16c.result +4 -0
  124. data/test/data/users_guide/example1_S.result +14 -0
  125. data/test/data/users_guide/example1_SXNC.result +10 -0
  126. data/test/data/users_guide/example1_source.result +14 -0
  127. data/test/data/users_guide/example2.rbhtml +3 -0
  128. data/test/data/users_guide/example2_sb.result2 +9 -0
  129. data/test/data/users_guide/example3.rbhtml +5 -0
  130. data/test/data/users_guide/example3_syntaxcheck.result +2 -0
  131. data/test/data/users_guide/example4.rbhtml +13 -0
  132. data/test/data/users_guide/example4_datafile_rb.result +13 -0
  133. data/test/data/users_guide/example4_yaml.result +13 -0
  134. data/test/data/users_guide/example5.rbhtml +9 -0
  135. data/test/data/users_guide/example5_datastr_rb.result +9 -0
  136. data/test/data/users_guide/example5_datastr_yaml.result +9 -0
  137. data/test/data/users_guide/example6.rbhtml +19 -0
  138. data/test/data/users_guide/example6_layout.result +29 -0
  139. data/test/data/users_guide/example6_nested.result +28 -0
  140. data/test/data/users_guide/example7_layout2.result +13 -0
  141. data/test/data/users_guide/example8_layout3.result +8 -0
  142. data/test/data/users_guide/example9.rbhtml +18 -0
  143. data/test/data/users_guide/example9_capture.result +26 -0
  144. data/test/data/users_guide/footer.html +5 -0
  145. data/test/data/users_guide/footer.rbhtml +4 -0
  146. data/test/data/users_guide/layout6.rbhtml +17 -0
  147. data/test/data/users_guide/layout7.rbhtml +9 -0
  148. data/test/data/users_guide/layout8_html.rbhtml +5 -0
  149. data/test/data/users_guide/layout8_xhtml.rbhtml +6 -0
  150. data/test/data/users_guide/layout9.rbhtml +25 -0
  151. data/test/data/users_guide/sidemenu.rbhtml +5 -0
  152. data/test/data/users_guide/user_app.cgi +39 -0
  153. data/test/data/users_guide/user_app.result +30 -0
  154. data/test/data/users_guide/user_create.rbhtml +6 -0
  155. data/test/data/users_guide/user_edit.rbhtml +7 -0
  156. data/test/data/users_guide/user_form.rbhtml +10 -0
  157. data/test/data/users_guide/user_layout.rbhtml +16 -0
  158. data/test/test_all.rb +23 -0
  159. data/test/test_engine.rb +526 -0
  160. data/test/test_engine.yaml +2039 -0
  161. data/test/test_examples.rb +81 -0
  162. data/test/test_faq.rb +60 -0
  163. data/test/test_htmlhelper.rb +78 -0
  164. data/test/test_main.rb +564 -0
  165. data/test/test_main.yaml +174 -0
  166. data/test/test_template.rb +113 -0
  167. data/test/test_template.yaml +1244 -0
  168. data/test/test_users_guide.rb +75 -0
  169. data/test/testcase-helper.rb +166 -0
  170. metadata +226 -0
@@ -0,0 +1 @@
1
+ Sat, 04 Aug 2007 14:02:32 +0900
@@ -0,0 +1,185 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>File: README.txt</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="fileHeader">
50
+ <h1>README.txt</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>README.txt
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Sat Aug 04 06:36:16 +0900 2007</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <h1>README</h1>
73
+ <table>
74
+ <tr><td valign="top">release:</td><td>0.6.0
75
+
76
+ </td></tr>
77
+ <tr><td valign="top">copyright:</td><td>copyright(c) 2007 kuwata-lab all rights reserved.
78
+
79
+ </td></tr>
80
+ </table>
81
+ <h2>About</h2>
82
+ <p>
83
+ rbTenjin is a very fast and full-featured template engine based on embedded
84
+ Ruby. You can embed Ruby statements and expressions into your text file.
85
+ rbTenjin converts it into Ruby program and evaluate it.
86
+ </p>
87
+ <h2>Features</h2>
88
+ <ul>
89
+ <li>Very fast (twice faster than eruby and three times faster than ERB)
90
+
91
+ </li>
92
+ <li>Lightweight (only one file which contains about 1000 lines)
93
+
94
+ </li>
95
+ <li>Not break HTML design because it uses XML Processing Instructions (PI) as
96
+ embedded notation for Python statements.
97
+
98
+ </li>
99
+ <li>Secure because it supports escaping expression value by default.
100
+
101
+ </li>
102
+ <li>Auto caching of converted Python code.
103
+
104
+ </li>
105
+ <li>Nestable layout template
106
+
107
+ </li>
108
+ <li>Inlucde other templates
109
+
110
+ </li>
111
+ <li>Capture part of template
112
+
113
+ </li>
114
+ <li>Load YAML file as context data
115
+
116
+ </li>
117
+ <li>Preprocessing support
118
+
119
+ </li>
120
+ </ul>
121
+ <p>
122
+ See doc/*.html for details.
123
+ </p>
124
+ <h2>Installation</h2>
125
+ <ul>
126
+ <li>If you have installed RubyGems, just type <tt>gem install tenjin</tt>.
127
+
128
+ <pre>
129
+ $ sudo gem install tenjin
130
+ </pre>
131
+ </li>
132
+ <li>Else download rbtenjin-X.X.X.tar.bz2 and just copy
133
+ &#8216;lib/tenjin.rb&#8217; and &#8216;bin/rbtenjin&#8217; into proper
134
+ directory.
135
+
136
+ <pre>
137
+ $ tar xjf rbtenjin-X.X.X.tar.bz2
138
+ $ cd rbtenjin-X.X.X/
139
+ $ sudo copy lib/tenjin.rb /usr/local/lib/ruby/1.8/site_ruby/1.8/
140
+ $ sudo copy bin/rbtenjin /usr/local/bin/
141
+ </pre>
142
+ </li>
143
+ </ul>
144
+ <h2>Attention</h2>
145
+ <p>
146
+ rbTenjin is beta released. It means that API or specification may change in
147
+ the future.
148
+ </p>
149
+ <h2>License</h2>
150
+ <p>
151
+ MIT License
152
+ </p>
153
+
154
+ </div>
155
+
156
+
157
+ </div>
158
+
159
+
160
+ </div>
161
+
162
+
163
+ <!-- if includes -->
164
+
165
+ <div id="section">
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+ <!-- if method_list -->
175
+
176
+
177
+ </div>
178
+
179
+
180
+ <div id="validator-badges">
181
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
182
+ </div>
183
+
184
+ </body>
185
+ </html>
@@ -0,0 +1,136 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>File: tenjin.rb</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="fileHeader">
50
+ <h1>tenjin.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>lib/tenjin.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Sat Aug 04 10:04:29 +0900 2007</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <p>
73
+ copyright(c) 2007 kuwata-lab all rights reserved.
74
+ </p>
75
+ <p>
76
+ Permission is hereby granted, free of charge, to any person obtaining a
77
+ copy of this software and associated documentation files (the
78
+ &quot;Software&quot;), to deal in the Software without restriction,
79
+ including without limitation the rights to use, copy, modify, merge,
80
+ publish, distribute, sublicense, and/or sell copies of the Software, and to
81
+ permit persons to whom the Software is furnished to do so, subject to the
82
+ following conditions:
83
+ </p>
84
+ <p>
85
+ The above copyright notice and this permission notice shall be included in
86
+ all copies or substantial portions of the Software.
87
+ </p>
88
+ <p>
89
+ THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,
90
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
91
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
92
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
93
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
94
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
95
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
96
+ </p>
97
+
98
+ </div>
99
+
100
+ <div id="requires-list">
101
+ <h3 class="section-bar">Required files</h3>
102
+
103
+ <div class="name-list">
104
+ cgi&nbsp;&nbsp;
105
+ </div>
106
+ </div>
107
+
108
+ </div>
109
+
110
+
111
+ </div>
112
+
113
+
114
+ <!-- if includes -->
115
+
116
+ <div id="section">
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+ <!-- if method_list -->
126
+
127
+
128
+ </div>
129
+
130
+
131
+ <div id="validator-badges">
132
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
133
+ </div>
134
+
135
+ </body>
136
+ </html>
@@ -0,0 +1,36 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Classes
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Classes</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Classes</h1>
22
+ <div id="index-entries">
23
+ <a href="classes/Tenjin.html">Tenjin</a><br />
24
+ <a href="classes/Tenjin/ArrayBufferTemplate.html">Tenjin::ArrayBufferTemplate</a><br />
25
+ <a href="classes/Tenjin/BaseContext.html">Tenjin::BaseContext</a><br />
26
+ <a href="classes/Tenjin/Context.html">Tenjin::Context</a><br />
27
+ <a href="classes/Tenjin/ContextHelper.html">Tenjin::ContextHelper</a><br />
28
+ <a href="classes/Tenjin/Engine.html">Tenjin::Engine</a><br />
29
+ <a href="classes/Tenjin/ErubisTemplate.html">Tenjin::ErubisTemplate</a><br />
30
+ <a href="classes/Tenjin/HtmlHelper.html">Tenjin::HtmlHelper</a><br />
31
+ <a href="classes/Tenjin/Preprocessor.html">Tenjin::Preprocessor</a><br />
32
+ <a href="classes/Tenjin/Template.html">Tenjin::Template</a><br />
33
+ </div>
34
+ </div>
35
+ </body>
36
+ </html>
@@ -0,0 +1,28 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Files
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Files</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Files</h1>
22
+ <div id="index-entries">
23
+ <a href="files/README_txt.html">README.txt</a><br />
24
+ <a href="files/lib/tenjin_rb.html">lib/tenjin.rb</a><br />
25
+ </div>
26
+ </div>
27
+ </body>
28
+ </html>
@@ -0,0 +1,89 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Methods
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Methods</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Methods</h1>
22
+ <div id="index-entries">
23
+ <a href="classes/Tenjin/BaseContext.html#M000023">[] (Tenjin::BaseContext)</a><br />
24
+ <a href="classes/Tenjin/BaseContext.html#M000024">[]= (Tenjin::BaseContext)</a><br />
25
+ <a href="classes/Tenjin/ContextHelper.html#M000015">_P (Tenjin::ContextHelper)</a><br />
26
+ <a href="classes/Tenjin/ContextHelper.html#M000016">_decode_params (Tenjin::ContextHelper)</a><br />
27
+ <a href="classes/Tenjin/ContextHelper.html#M000014">_p (Tenjin::ContextHelper)</a><br />
28
+ <a href="classes/Tenjin/Template.html#M000061">add_expr (Tenjin::Template)</a><br />
29
+ <a href="classes/Tenjin/Preprocessor.html#M000044">add_expr (Tenjin::Preprocessor)</a><br />
30
+ <a href="classes/Tenjin/Template.html#M000062">add_stmt (Tenjin::Template)</a><br />
31
+ <a href="classes/Tenjin/Template.html#M000059">add_text (Tenjin::Template)</a><br />
32
+ <a href="classes/Tenjin/Template.html#M000049">after_convert (Tenjin::Template)</a><br />
33
+ <a href="classes/Tenjin/Template.html#M000048">before_convert (Tenjin::Template)</a><br />
34
+ <a href="classes/Tenjin/Engine.html#M000034">cachename (Tenjin::Engine)</a><br />
35
+ <a href="classes/Tenjin/ContextHelper.html#M000013">captured_as (Tenjin::ContextHelper)</a><br />
36
+ <a href="classes/Tenjin/HtmlHelper.html#M000004">checked (Tenjin::HtmlHelper)</a><br />
37
+ <a href="classes/Tenjin/Template.html#M000050">compile_stmt_pattern (Tenjin::Template)</a><br />
38
+ <a href="classes/Tenjin/Template.html#M000047">convert (Tenjin::Template)</a><br />
39
+ <a href="classes/Tenjin/Template.html#M000046">convert_file (Tenjin::Template)</a><br />
40
+ <a href="classes/Tenjin/Engine.html#M000035">create_template (Tenjin::Engine)</a><br />
41
+ <a href="classes/Tenjin/HtmlHelper.html#M000006">disabled (Tenjin::HtmlHelper)</a><br />
42
+ <a href="classes/Tenjin/BaseContext.html#M000028">each (Tenjin::BaseContext)</a><br />
43
+ <a href="classes/Tenjin/ContextHelper.html#M000010">echo (Tenjin::ContextHelper)</a><br />
44
+ <a href="classes/Tenjin/HtmlHelper.html#M000002">escape (Tenjin::HtmlHelper)</a><br />
45
+ <a href="classes/Tenjin/BaseContext.html#M000025">escape (Tenjin::BaseContext)</a><br />
46
+ <a href="classes/Tenjin/Preprocessor.html#M000043">escape_str (Tenjin::Preprocessor)</a><br />
47
+ <a href="classes/Tenjin/Template.html#M000060">escape_str (Tenjin::Template)</a><br />
48
+ <a href="classes/Tenjin/HtmlHelper.html#M000001">escape_xml (Tenjin::HtmlHelper)</a><br />
49
+ <a href="classes/Tenjin/ArrayBufferTemplate.html#M000018">expr_pattern (Tenjin::ArrayBufferTemplate)</a><br />
50
+ <a href="classes/Tenjin/Preprocessor.html#M000042">expr_pattern (Tenjin::Preprocessor)</a><br />
51
+ <a href="classes/Tenjin/Template.html#M000053">expr_pattern (Tenjin::Template)</a><br />
52
+ <a href="classes/Tenjin/Engine.html#M000031">find_template_file (Tenjin::Engine)</a><br />
53
+ <a href="classes/Tenjin/Template.html#M000054">get_expr_and_escapeflag (Tenjin::Template)</a><br />
54
+ <a href="classes/Tenjin/Engine.html#M000038">get_template (Tenjin::Engine)</a><br />
55
+ <a href="classes/Tenjin/Engine.html#M000040">hook_context (Tenjin::Engine)</a><br />
56
+ <a href="classes/Tenjin/ContextHelper.html#M000009">import (Tenjin::ContextHelper)</a><br />
57
+ <a href="classes/Tenjin/BaseContext.html#M000027">key? (Tenjin::BaseContext)</a><br />
58
+ <a href="classes/Tenjin/Engine.html#M000037">load_cachefile (Tenjin::Engine)</a><br />
59
+ <a href="classes/Tenjin/BaseContext.html#M000022">new (Tenjin::BaseContext)</a><br />
60
+ <a href="classes/Tenjin/Engine.html#M000029">new (Tenjin::Engine)</a><br />
61
+ <a href="classes/Tenjin/Template.html#M000045">new (Tenjin::Template)</a><br />
62
+ <a href="classes/Tenjin/HtmlHelper.html#M000007">nl2br (Tenjin::HtmlHelper)</a><br />
63
+ <a href="classes/Tenjin/ArrayBufferTemplate.html#M000019">parse_exprs (Tenjin::ArrayBufferTemplate)</a><br />
64
+ <a href="classes/Tenjin/Template.html#M000055">parse_exprs (Tenjin::Template)</a><br />
65
+ <a href="classes/Tenjin/Template.html#M000052">parse_stmts (Tenjin::Template)</a><br />
66
+ <a href="classes/Tenjin/ErubisTemplate.html#M000017">parse_stmts (Tenjin::ErubisTemplate)</a><br />
67
+ <a href="classes/Tenjin/ArrayBufferTemplate.html#M000021">quote_expr (Tenjin::ArrayBufferTemplate)</a><br />
68
+ <a href="classes/Tenjin/ArrayBufferTemplate.html#M000020">quote_str (Tenjin::ArrayBufferTemplate)</a><br />
69
+ <a href="classes/Tenjin/Engine.html#M000032">read_template_file (Tenjin::Engine)</a><br />
70
+ <a href="classes/Tenjin/Engine.html#M000033">register_template (Tenjin::Engine)</a><br />
71
+ <a href="classes/Tenjin/Engine.html#M000039">render (Tenjin::Engine)</a><br />
72
+ <a href="classes/Tenjin/Template.html#M000063">render (Tenjin::Template)</a><br />
73
+ <a href="classes/Tenjin/HtmlHelper.html#M000005">selected (Tenjin::HtmlHelper)</a><br />
74
+ <a href="classes/Tenjin/ContextHelper.html#M000011">start_capture (Tenjin::ContextHelper)</a><br />
75
+ <a href="classes/Tenjin/Template.html#M000057">start_text_part (Tenjin::Template)</a><br />
76
+ <a href="classes/Tenjin/Template.html#M000056">statement_hook (Tenjin::Template)</a><br />
77
+ <a href="classes/Tenjin/Template.html#M000051">stmt_pattern (Tenjin::Template)</a><br />
78
+ <a href="classes/Tenjin/Preprocessor.html#M000041">stmt_pattern (Tenjin::Preprocessor)</a><br />
79
+ <a href="classes/Tenjin/ContextHelper.html#M000012">stop_capture (Tenjin::ContextHelper)</a><br />
80
+ <a href="classes/Tenjin/Template.html#M000058">stop_text_part (Tenjin::Template)</a><br />
81
+ <a href="classes/Tenjin/Engine.html#M000036">store_cachefile (Tenjin::Engine)</a><br />
82
+ <a href="classes/Tenjin/HtmlHelper.html#M000003">tagattr (Tenjin::HtmlHelper)</a><br />
83
+ <a href="classes/Tenjin/HtmlHelper.html#M000008">text2html (Tenjin::HtmlHelper)</a><br />
84
+ <a href="classes/Tenjin/Engine.html#M000030">to_filename (Tenjin::Engine)</a><br />
85
+ <a href="classes/Tenjin/BaseContext.html#M000026">update (Tenjin::BaseContext)</a><br />
86
+ </div>
87
+ </div>
88
+ </body>
89
+ </html>