tenjin 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +163 -0
- data/MIT-LICENSE +16 -17
- data/README.txt +5 -5
- data/benchmark/Makefile +9 -0
- data/benchmark/bench.rb +3 -2
- data/bin/rbtenjin +6 -3
- data/doc/docstyle.css +25 -4
- data/doc/users-guide.html +2088 -1563
- data/lib/tenjin.rb +784 -158
- data/public_html/_layout.rbhtml +33 -0
- data/public_html/css/style.css +77 -0
- data/public_html/env.rbhtml +15 -0
- data/public_html/favicon.ico +0 -0
- data/public_html/hello.rbhtml +14 -0
- data/public_html/index.rbhtml +39 -0
- data/public_html/rbtenjin.cgi +188 -0
- data/tenjin.gemspec +9 -6
- data/test/data/examples/preprocessing/main.rb +1 -1
- data/test/data/examples/preprocessing/select.rbhtml +1 -1
- data/test/data/faq/{ex11-bench.rb → ex10-bench.rb} +3 -3
- data/test/data/faq/ex10-content.rbhtml +8 -11
- data/test/data/faq/{ex11-layout1.rbhtml → ex10-layout1.rbhtml} +0 -0
- data/test/data/faq/{ex11-layout2.rbhtml → ex10-layout2.rbhtml} +0 -0
- data/test/data/faq/{ex11.rb → ex10.rb} +1 -1
- data/test/data/faq/{ex11.rbhtml → ex10.rbhtml} +0 -0
- data/test/data/faq/{ex11.source → ex10.source} +2 -2
- data/test/data/faq/{ex11_arraybuffer.result → ex10_arraybuffer.result} +1 -1
- data/test/data/faq/{ex5.rbhtml → ex2.rbhtml} +0 -0
- data/test/data/faq/{ex5_template_args.source → ex2_template_args.source} +1 -1
- data/test/data/faq/{ex7-expr-pattern.rb → ex4-expr-pattern.rb} +1 -1
- data/test/data/faq/{ex7-expr-pattern.rbhtml → ex4-expr-pattern.rbhtml} +0 -0
- data/test/data/faq/{ex7_expr_pattern.result → ex4_expr_pattern.result} +1 -1
- data/test/data/faq/{ex6-content.rhtml → ex5-content.rhtml} +0 -0
- data/test/data/faq/{ex6-layout.rhtml → ex5-layout.rhtml} +0 -0
- data/test/data/faq/{ex6.rb → ex5.rb} +2 -2
- data/test/data/faq/{ex6_eruby.result → ex5_eruby.result} +1 -1
- data/test/data/faq/{ex2-content.rbhtml → ex6-content.rbhtml} +0 -0
- data/test/data/faq/{ex2-layout.rbhtml → ex6-layout.rbhtml} +0 -0
- data/test/data/faq/{ex2_removenl.result → ex6_removenl.result} +1 -1
- data/test/data/faq/ex7-m18n.rb +48 -0
- data/test/data/faq/{ex8-m18n.rbhtml → ex7-m18n.rbhtml} +0 -0
- data/test/data/faq/{ex8_m18n.result → ex7_m18n.result} +1 -1
- data/test/data/faq/ex8-baselayout.rbhtml +8 -0
- data/test/data/faq/ex8-content.rbhtml +6 -0
- data/test/data/faq/{ex9-mylayout.rbhtml → ex8-mylayout.rbhtml} +0 -0
- data/test/data/faq/{ex9_changelayout.result → ex8_changelayout.result} +1 -1
- data/test/data/faq/ex9-baselayout.rbhtml +24 -5
- data/test/data/faq/ex9-content.rbhtml +12 -6
- data/test/data/faq/{ex10-customlayout.rbhtml → ex9-customlayout.rbhtml} +1 -1
- data/test/data/faq/{ex10_inherit.result → ex9_inherit.result} +1 -1
- data/test/data/faq/helpers1.rb +17 -0
- data/test/data/faq/helpers1.rbhtml +4 -0
- data/test/data/faq/helpers1.result +11 -0
- data/test/data/faq/helpers2.rb +21 -0
- data/test/data/faq/helpers2.rbhtml +4 -0
- data/test/data/faq/helpers2.result +11 -0
- data/test/data/faq/weekday1.rb +6 -0
- data/test/data/faq/weekday1.rbhtml +9 -0
- data/test/data/faq/weekday1.result +23 -0
- data/test/data/faq/weekday2.rb +8 -0
- data/test/data/faq/weekday2.rbhtml +10 -0
- data/test/data/faq/weekday2.result +24 -0
- data/test/data/faq/weekday3.rb +22 -0
- data/test/data/faq/weekday3.rbhtml +3 -0
- data/test/data/faq/weekday3.result +28 -0
- data/test/data/users_guide/test_010/main.rb +14 -0
- data/test/data/users_guide/test_010/result.output +13 -0
- data/test/data/users_guide/test_010/views/page.rbhtml +11 -0
- data/test/data/users_guide/test_011/main.rb +14 -0
- data/test/data/users_guide/test_011/result.output +2 -0
- data/test/data/users_guide/test_011/views/page.rbhtml +11 -0
- data/test/data/users_guide/test_020/main.rb +14 -0
- data/test/data/users_guide/test_020/result.output +13 -0
- data/test/data/users_guide/test_020/views/page.rbhtml +11 -0
- data/test/data/users_guide/test_021/main.rb +12 -0
- data/test/data/users_guide/test_021/result.output +12 -0
- data/test/data/users_guide/test_021/views/page.rbhtml +11 -0
- data/test/data/users_guide/test_030/main.rb +14 -0
- data/test/data/users_guide/test_030/result.output +23 -0
- data/test/data/users_guide/test_030/views/_layout.rbhtml +10 -0
- data/test/data/users_guide/test_030/views/page.rbhtml +11 -0
- data/test/data/users_guide/test_040/main.rb +14 -0
- data/test/data/users_guide/test_040/result.output +23 -0
- data/test/data/users_guide/test_040/views/_layout.rbhtml +10 -0
- data/test/data/users_guide/test_040/views/page.rbhtml +12 -0
- data/test/data/users_guide/test_050/main.rb +14 -0
- data/test/data/users_guide/test_050/result.output +14 -0
- data/test/data/users_guide/test_050/views/_layout.rbhtml +10 -0
- data/test/data/users_guide/test_050/views/page.rbhtml +13 -0
- data/test/data/users_guide/test_051/main.rb +14 -0
- data/test/data/users_guide/test_051/result.output +12 -0
- data/test/data/users_guide/test_051/views/_layout.rbhtml +11 -0
- data/test/data/users_guide/test_051/views/page.rbhtml +13 -0
- data/test/data/users_guide/test_060/main.rb +14 -0
- data/test/data/users_guide/test_060/result.output +29 -0
- data/test/data/users_guide/test_060/views/_footer.rbhtml +3 -0
- data/test/data/users_guide/test_060/views/_header.rbhtml +3 -0
- data/test/data/users_guide/test_060/views/_layout.rbhtml +13 -0
- data/test/data/users_guide/test_060/views/page.rbhtml +13 -0
- data/test/data/users_guide/test_070/main.rb +14 -0
- data/test/data/users_guide/test_070/result.output +29 -0
- data/test/data/users_guide/test_070/views/_footer.rbhtml +3 -0
- data/test/data/users_guide/test_070/views/_header.rbhtml +3 -0
- data/test/data/users_guide/test_070/views/_layout.rbhtml +13 -0
- data/test/data/users_guide/test_070/views/page.rbhtml +13 -0
- data/test/data/users_guide/test_capturing/main.rb +24 -0
- data/test/data/users_guide/test_capturing/result.output +28 -0
- data/test/data/users_guide/test_capturing/views/_layout.rbhtml +21 -0
- data/test/data/users_guide/test_capturing/views/blog-post.rbhtml +13 -0
- data/test/data/users_guide/test_context/context.rb +5 -0
- data/test/data/users_guide/test_context/context.yaml +4 -0
- data/test/data/users_guide/test_context/example.rbhtml +5 -0
- data/test/data/users_guide/test_context/result1.output +6 -0
- data/test/data/users_guide/test_context/result2.output +6 -0
- data/test/data/users_guide/test_context/result3.output +6 -0
- data/test/data/users_guide/test_context/result4.output +6 -0
- data/test/data/users_guide/test_convert/example.rbhtml +5 -0
- data/test/data/users_guide/test_convert/result1.output +7 -0
- data/test/data/users_guide/test_convert/result2.output +6 -0
- data/test/data/users_guide/test_escape/main.rb +4 -0
- data/test/data/users_guide/test_escape/result.output +5 -0
- data/test/data/users_guide/test_escape/views/page.rbhtml +4 -0
- data/test/data/users_guide/test_execute/example.rbhtml +6 -0
- data/test/data/users_guide/test_execute/result.output +6 -0
- data/test/data/users_guide/test_fragmentcache/cache.d/items/1 +5 -0
- data/test/data/users_guide/test_fragmentcache/main.rb +21 -0
- data/test/data/users_guide/test_fragmentcache/result.output +8 -0
- data/test/data/users_guide/test_fragmentcache/result2.output +6 -0
- data/test/data/users_guide/test_fragmentcache/views/items.rbhtml +10 -0
- data/test/data/users_guide/test_logging/ex-logger.rb +11 -0
- data/test/data/users_guide/test_logging/example.rbhtml +0 -0
- data/test/data/users_guide/test_logging/result1.output +3 -0
- data/test/data/users_guide/test_logging/result2.output +2 -0
- data/test/data/users_guide/test_m17n/m17n.rb +44 -0
- data/test/data/users_guide/test_m17n/m17n.rbhtml +5 -0
- data/test/data/users_guide/test_m17n/result.output +9 -0
- data/test/data/users_guide/test_m17n/result_en.output +4 -0
- data/test/data/users_guide/test_m17n/result_fr.output +4 -0
- data/test/data/users_guide/test_nested/main.rb +8 -0
- data/test/data/users_guide/test_nested/result.output +15 -0
- data/test/data/users_guide/test_nested/views/_blog_layout.rbhtml +5 -0
- data/test/data/users_guide/{layout8_html.rbhtml → test_nested/views/_site_layout.rbhtml} +0 -0
- data/test/data/users_guide/test_nested/views/blog_post.rbhtml +4 -0
- data/test/data/users_guide/test_preprocessing/pp-example1.rb +14 -0
- data/test/data/users_guide/test_preprocessing/result1a.output +11 -0
- data/test/data/users_guide/test_preprocessing/result1b.output +5 -0
- data/test/data/users_guide/test_preprocessing/result1c.output +6 -0
- data/test/data/users_guide/test_preprocessing/result2a.output +10 -0
- data/test/data/users_guide/test_preprocessing/result2b.output +10 -0
- data/test/data/users_guide/test_preprocessing/result3a.output +2 -0
- data/test/data/users_guide/test_preprocessing/result3b.output +2 -0
- data/test/data/users_guide/test_preprocessing/views/pp-example1.rbhtml +4 -0
- data/test/data/users_guide/{example12.rbhtml → test_preprocessing/views/pp-example2.rbhtml} +4 -4
- data/test/data/users_guide/test_preprocessing/views/pp-example3.rbhtml +7 -0
- data/test/data/users_guide/test_retrieve/example.rbhtml +10 -0
- data/test/data/users_guide/test_retrieve/result1.output +11 -0
- data/test/data/users_guide/test_retrieve/result2.output +11 -0
- data/test/data/users_guide/test_retrieve/result3.output +11 -0
- data/test/data/users_guide/test_retrieve/result4.output +8 -0
- data/test/data/users_guide/test_retrieve/result5.output +5 -0
- data/test/data/users_guide/test_safe/result.output +6 -0
- data/test/data/users_guide/test_safe/safe-test.rb +21 -0
- data/test/data/users_guide/test_safehelper/main.rb +16 -0
- data/test/data/users_guide/test_safehelper/result.output +8 -0
- data/test/data/users_guide/{example3.rbhtml → test_syntax_check/example.rbhtml} +0 -0
- data/test/data/users_guide/test_syntax_check/result.output +2 -0
- data/test/data/users_guide/test_trace/layout.rbhtml +7 -0
- data/test/data/users_guide/test_trace/main.rbhtml +5 -0
- data/test/data/users_guide/test_trace/result.output +16 -0
- data/test/data/users_guide/test_trace/trace-example.rb +4 -0
- data/test/oktest.rb +755 -0
- data/test/test_all.rb +24 -14
- data/test/test_engine.rb +628 -63
- data/test/test_engine.yaml +40 -3
- data/test/test_examples.rb +14 -12
- data/test/test_faq.rb +17 -12
- data/test/test_htmlhelper.rb +104 -33
- data/test/test_main.rb +32 -21
- data/test/test_main.yaml +2 -2
- data/test/test_safe.rb +206 -0
- data/test/test_store.rb +220 -0
- data/test/test_tcache.rb +94 -0
- data/test/test_template.rb +65 -23
- data/test/test_template.yaml +7 -7
- data/test/test_users_guide.rb +75 -29
- data/test/testcase-helper.rb +20 -18
- data/test/testunit-assertions.rb +71 -0
- metadata +185 -159
- data/doc-api/classes/Tenjin.html +0 -141
- data/doc-api/classes/Tenjin/ArrayBufferTemplate.html +0 -270
- data/doc-api/classes/Tenjin/BaseContext.html +0 -329
- data/doc-api/classes/Tenjin/Context.html +0 -126
- data/doc-api/classes/Tenjin/ContextHelper.html +0 -461
- data/doc-api/classes/Tenjin/Engine.html +0 -616
- data/doc-api/classes/Tenjin/ErubisTemplate.html +0 -166
- data/doc-api/classes/Tenjin/HtmlHelper.html +0 -359
- data/doc-api/classes/Tenjin/Preprocessor.html +0 -242
- data/doc-api/classes/Tenjin/Template.html +0 -916
- data/doc-api/created.rid +0 -1
- data/doc-api/files/README_txt.html +0 -188
- data/doc-api/files/lib/tenjin_rb.html +0 -136
- data/doc-api/fr_class_index.html +0 -36
- data/doc-api/fr_file_index.html +0 -28
- data/doc-api/fr_method_index.html +0 -91
- data/doc-api/index.html +0 -24
- data/doc-api/rdoc-style.css +0 -208
- data/doc/examples.html +0 -312
- data/doc/faq.html +0 -909
- data/examples/preprocessing/select.rbhtml.cache +0 -17
- data/test/Rookbook.yaml +0 -14
- data/test/assert-text-equal.rb +0 -45
- data/test/data/faq/ex10-baselayout.rbhtml +0 -27
- data/test/data/faq/ex11-content.rbhtml +0 -9
- data/test/data/faq/ex8-m18n.rb +0 -77
- data/test/data/users_guide/content6.rbhtml +0 -3
- data/test/data/users_guide/content7.rbhtml +0 -5
- data/test/data/users_guide/content8.rbhtml +0 -2
- data/test/data/users_guide/contextdata.rb +0 -7
- data/test/data/users_guide/datafile.rb +0 -5
- data/test/data/users_guide/datafile.yaml +0 -10
- data/test/data/users_guide/ex.rbhtml +0 -6
- data/test/data/users_guide/ex.result +0 -7
- data/test/data/users_guide/ex.script +0 -5
- data/test/data/users_guide/ex_script.result +0 -7
- data/test/data/users_guide/ex_source.result +0 -8
- data/test/data/users_guide/example1.rbhtml +0 -12
- data/test/data/users_guide/example1.result +0 -17
- data/test/data/users_guide/example10.rbhtml +0 -4
- data/test/data/users_guide/example10_template_args.result +0 -6
- data/test/data/users_guide/example11.rbhtml +0 -5
- data/test/data/users_guide/example11_template_args_result +0 -2
- data/test/data/users_guide/example12_preprocessed.result +0 -10
- data/test/data/users_guide/example12_preprocessed_source.result +0 -10
- data/test/data/users_guide/example13.rbhtml +0 -6
- data/test/data/users_guide/example13_preprocessed.result +0 -2
- data/test/data/users_guide/example13_preprocessed_source.result +0 -2
- data/test/data/users_guide/example14.rb +0 -32
- data/test/data/users_guide/example14.rbhtml +0 -6
- data/test/data/users_guide/example14_tmplclass.result +0 -15
- data/test/data/users_guide/example15.rb +0 -10
- data/test/data/users_guide/example15_escapefunc.result +0 -14
- data/test/data/users_guide/example16.rbhtml +0 -4
- data/test/data/users_guide/example16a.rb +0 -10
- data/test/data/users_guide/example16a.result +0 -4
- data/test/data/users_guide/example16b.rb +0 -13
- data/test/data/users_guide/example16b.result +0 -4
- data/test/data/users_guide/example16c.rb +0 -12
- data/test/data/users_guide/example16c.result +0 -4
- data/test/data/users_guide/example16d.rb +0 -27
- data/test/data/users_guide/example16d.result +0 -4
- data/test/data/users_guide/example1_S.result +0 -14
- data/test/data/users_guide/example1_SXNC.result +0 -10
- data/test/data/users_guide/example1_source.result +0 -14
- data/test/data/users_guide/example2.rbhtml +0 -3
- data/test/data/users_guide/example2_sb.result2 +0 -9
- data/test/data/users_guide/example3_syntaxcheck.result +0 -2
- data/test/data/users_guide/example4.rbhtml +0 -13
- data/test/data/users_guide/example4_datafile_rb.result +0 -13
- data/test/data/users_guide/example4_yaml.result +0 -13
- data/test/data/users_guide/example5.rbhtml +0 -9
- data/test/data/users_guide/example5_datastr_rb.result +0 -9
- data/test/data/users_guide/example5_datastr_yaml.result +0 -9
- data/test/data/users_guide/example6.rbhtml +0 -19
- data/test/data/users_guide/example6_layout.result +0 -29
- data/test/data/users_guide/example6_nested.result +0 -28
- data/test/data/users_guide/example7_layout2.result +0 -13
- data/test/data/users_guide/example8_layout3.result +0 -8
- data/test/data/users_guide/example9.rbhtml +0 -18
- data/test/data/users_guide/example9_capture.result +0 -26
- data/test/data/users_guide/footer.html +0 -5
- data/test/data/users_guide/footer.rbhtml +0 -4
- data/test/data/users_guide/layout6.rbhtml +0 -17
- data/test/data/users_guide/layout7.rbhtml +0 -9
- data/test/data/users_guide/layout8_xhtml.rbhtml +0 -6
- data/test/data/users_guide/layout9.rbhtml +0 -25
- data/test/data/users_guide/sidemenu.rbhtml +0 -5
- data/test/data/users_guide/user_app.cgi +0 -39
- data/test/data/users_guide/user_app.result +0 -30
- data/test/data/users_guide/user_create.rbhtml +0 -6
- data/test/data/users_guide/user_edit.rbhtml +0 -7
- data/test/data/users_guide/user_form.rbhtml +0 -10
- data/test/data/users_guide/user_layout.rbhtml +0 -16
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tenjin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- makoto kuwata
|
@@ -9,11 +9,11 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2011-11-24 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description: Tenjin is a template engine and has the following features
|
16
|
+
description: " Tenjin is a template engine and has the following features.\n * Very fast and lightweight\n * Small and only a file\n * Auto escaping support\n * Auto trimming spaces around embedded statements\n * Context object available\n * Able to load YAML data file\n * Preprocessing support\n"
|
17
17
|
email: kwa(at)kuwata-lab.com
|
18
18
|
executables:
|
19
19
|
- rbtenjin
|
@@ -24,138 +24,195 @@ extra_rdoc_files: []
|
|
24
24
|
files:
|
25
25
|
- lib/tenjin.rb
|
26
26
|
- bin/rbtenjin
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
27
|
+
- examples/form/create.rbhtml
|
28
|
+
- examples/form/form.rbhtml
|
29
|
+
- examples/form/layout.rbhtml
|
30
|
+
- examples/form/main.rb
|
31
|
+
- examples/form/Makefile
|
32
|
+
- examples/form/Rakefile
|
33
|
+
- examples/form/update.rbhtml
|
34
|
+
- examples/preprocessing/helper.rb
|
35
|
+
- examples/preprocessing/main.rb
|
36
|
+
- examples/preprocessing/Makefile
|
37
|
+
- examples/preprocessing/Rakefile
|
38
|
+
- examples/preprocessing/select.rbhtml
|
39
|
+
- examples/table/Makefile
|
40
|
+
- examples/table/Rakefile
|
41
|
+
- examples/table/table.rb
|
42
|
+
- examples/table/table.rbhtml
|
31
43
|
- test/data/examples/form/create.rbhtml
|
32
44
|
- test/data/examples/form/form.rbhtml
|
33
45
|
- test/data/examples/form/layout.rbhtml
|
34
46
|
- test/data/examples/form/main.rb
|
35
47
|
- test/data/examples/form/main.result
|
36
48
|
- test/data/examples/form/update.rbhtml
|
37
|
-
- test/data/examples/preprocessing
|
38
49
|
- test/data/examples/preprocessing/helper.rb
|
39
50
|
- test/data/examples/preprocessing/main.rb
|
40
51
|
- test/data/examples/preprocessing/main.result
|
41
52
|
- test/data/examples/preprocessing/select.rbhtml
|
42
53
|
- test/data/examples/preprocessing/select_P.result
|
43
|
-
- test/data/examples/table
|
44
54
|
- test/data/examples/table/table.rb
|
45
55
|
- test/data/examples/table/table.rbhtml
|
46
56
|
- test/data/examples/table/table.result
|
47
57
|
- test/data/examples/table/table_s.result
|
48
|
-
- test/data/faq
|
49
58
|
- test/data/faq/ex1.rbhtml
|
50
|
-
- test/data/faq/ex10-
|
59
|
+
- test/data/faq/ex10-bench.rb
|
51
60
|
- test/data/faq/ex10-content.rbhtml
|
52
|
-
- test/data/faq/ex10-
|
53
|
-
- test/data/faq/
|
54
|
-
- test/data/faq/
|
55
|
-
- test/data/faq/
|
56
|
-
- test/data/faq/
|
57
|
-
- test/data/faq/
|
58
|
-
- test/data/faq/ex11.rb
|
59
|
-
- test/data/faq/ex11.rbhtml
|
60
|
-
- test/data/faq/ex11.source
|
61
|
-
- test/data/faq/ex11_arraybuffer.result
|
61
|
+
- test/data/faq/ex10-layout1.rbhtml
|
62
|
+
- test/data/faq/ex10-layout2.rbhtml
|
63
|
+
- test/data/faq/ex10.rb
|
64
|
+
- test/data/faq/ex10.rbhtml
|
65
|
+
- test/data/faq/ex10.source
|
66
|
+
- test/data/faq/ex10_arraybuffer.result
|
62
67
|
- test/data/faq/ex1_chksyntax.result
|
63
|
-
- test/data/faq/ex2
|
64
|
-
- test/data/faq/
|
65
|
-
- test/data/faq/ex2_removenl.result
|
68
|
+
- test/data/faq/ex2.rbhtml
|
69
|
+
- test/data/faq/ex2_template_args.source
|
66
70
|
- test/data/faq/ex3.rb
|
67
71
|
- test/data/faq/ex3.rbhtml
|
68
72
|
- test/data/faq/ex3_escapefunc1.result
|
69
73
|
- test/data/faq/ex3_escapefunc2.result
|
70
|
-
- test/data/faq/
|
71
|
-
- test/data/faq/
|
72
|
-
- test/data/faq/
|
73
|
-
- test/data/faq/
|
74
|
-
- test/data/faq/
|
75
|
-
- test/data/faq/
|
76
|
-
- test/data/faq/
|
77
|
-
- test/data/faq/
|
78
|
-
- test/data/faq/
|
79
|
-
- test/data/faq/
|
80
|
-
- test/data/faq/
|
81
|
-
- test/data/faq/
|
74
|
+
- test/data/faq/ex4-expr-pattern.rb
|
75
|
+
- test/data/faq/ex4-expr-pattern.rbhtml
|
76
|
+
- test/data/faq/ex4_expr_pattern.result
|
77
|
+
- test/data/faq/ex5-content.rhtml
|
78
|
+
- test/data/faq/ex5-layout.rhtml
|
79
|
+
- test/data/faq/ex5.rb
|
80
|
+
- test/data/faq/ex5_eruby.result
|
81
|
+
- test/data/faq/ex6-content.rbhtml
|
82
|
+
- test/data/faq/ex6-layout.rbhtml
|
83
|
+
- test/data/faq/ex6_removenl.result
|
84
|
+
- test/data/faq/ex7-m18n.rb
|
85
|
+
- test/data/faq/ex7-m18n.rbhtml
|
86
|
+
- test/data/faq/ex7_m18n.result
|
87
|
+
- test/data/faq/ex8-baselayout.rbhtml
|
88
|
+
- test/data/faq/ex8-content.rbhtml
|
89
|
+
- test/data/faq/ex8-mylayout.rbhtml
|
90
|
+
- test/data/faq/ex8_changelayout.result
|
82
91
|
- test/data/faq/ex9-baselayout.rbhtml
|
83
92
|
- test/data/faq/ex9-content.rbhtml
|
84
|
-
- test/data/faq/ex9-
|
85
|
-
- test/data/faq/
|
86
|
-
- test/data/
|
87
|
-
- test/data/
|
88
|
-
- test/data/
|
89
|
-
- test/data/
|
90
|
-
- test/data/
|
91
|
-
- test/data/
|
92
|
-
- test/data/
|
93
|
-
- test/data/
|
94
|
-
- test/data/
|
95
|
-
- test/data/
|
96
|
-
- test/data/
|
97
|
-
- test/data/
|
98
|
-
- test/data/
|
99
|
-
- test/data/
|
100
|
-
- test/data/
|
101
|
-
- test/data/users_guide/
|
102
|
-
- test/data/users_guide/
|
103
|
-
- test/data/users_guide/
|
104
|
-
- test/data/users_guide/
|
105
|
-
- test/data/users_guide/
|
106
|
-
- test/data/users_guide/
|
107
|
-
- test/data/users_guide/
|
108
|
-
- test/data/users_guide/
|
109
|
-
- test/data/users_guide/
|
110
|
-
- test/data/users_guide/
|
111
|
-
- test/data/users_guide/
|
112
|
-
- test/data/users_guide/
|
113
|
-
- test/data/users_guide/
|
114
|
-
- test/data/users_guide/
|
115
|
-
- test/data/users_guide/
|
116
|
-
- test/data/users_guide/
|
117
|
-
- test/data/users_guide/
|
118
|
-
- test/data/users_guide/
|
119
|
-
- test/data/users_guide/
|
120
|
-
- test/data/users_guide/
|
121
|
-
- test/data/users_guide/
|
122
|
-
- test/data/users_guide/
|
123
|
-
- test/data/users_guide/
|
124
|
-
- test/data/users_guide/
|
125
|
-
- test/data/users_guide/
|
126
|
-
- test/data/users_guide/
|
127
|
-
- test/data/users_guide/
|
128
|
-
- test/data/users_guide/
|
129
|
-
- test/data/users_guide/
|
130
|
-
- test/data/users_guide/
|
131
|
-
- test/data/users_guide/
|
132
|
-
- test/data/users_guide/
|
133
|
-
- test/data/users_guide/
|
134
|
-
- test/data/users_guide/
|
135
|
-
- test/data/users_guide/
|
136
|
-
- test/data/users_guide/
|
137
|
-
- test/data/users_guide/
|
138
|
-
- test/data/users_guide/
|
139
|
-
- test/data/users_guide/
|
140
|
-
- test/data/users_guide/
|
141
|
-
- test/data/users_guide/
|
142
|
-
- test/data/users_guide/
|
143
|
-
- test/data/users_guide/
|
144
|
-
- test/data/users_guide/
|
145
|
-
- test/data/users_guide/
|
146
|
-
- test/data/users_guide/
|
147
|
-
- test/data/users_guide/
|
148
|
-
- test/data/users_guide/
|
149
|
-
- test/data/users_guide/
|
150
|
-
- test/data/users_guide/
|
151
|
-
- test/data/users_guide/
|
152
|
-
- test/data/users_guide/
|
153
|
-
- test/data/users_guide/
|
154
|
-
- test/data/users_guide/
|
155
|
-
- test/data/users_guide/
|
156
|
-
- test/data/users_guide/
|
157
|
-
- test/data/users_guide/
|
158
|
-
- test/
|
93
|
+
- test/data/faq/ex9-customlayout.rbhtml
|
94
|
+
- test/data/faq/ex9_inherit.result
|
95
|
+
- test/data/faq/helpers1.rb
|
96
|
+
- test/data/faq/helpers1.rbhtml
|
97
|
+
- test/data/faq/helpers1.result
|
98
|
+
- test/data/faq/helpers2.rb
|
99
|
+
- test/data/faq/helpers2.rbhtml
|
100
|
+
- test/data/faq/helpers2.result
|
101
|
+
- test/data/faq/weekday1.rb
|
102
|
+
- test/data/faq/weekday1.rbhtml
|
103
|
+
- test/data/faq/weekday1.result
|
104
|
+
- test/data/faq/weekday2.rb
|
105
|
+
- test/data/faq/weekday2.rbhtml
|
106
|
+
- test/data/faq/weekday2.result
|
107
|
+
- test/data/faq/weekday3.rb
|
108
|
+
- test/data/faq/weekday3.rbhtml
|
109
|
+
- test/data/faq/weekday3.result
|
110
|
+
- test/data/users_guide/test_010/main.rb
|
111
|
+
- test/data/users_guide/test_010/result.output
|
112
|
+
- test/data/users_guide/test_010/views/page.rbhtml
|
113
|
+
- test/data/users_guide/test_011/main.rb
|
114
|
+
- test/data/users_guide/test_011/result.output
|
115
|
+
- test/data/users_guide/test_011/views/page.rbhtml
|
116
|
+
- test/data/users_guide/test_020/main.rb
|
117
|
+
- test/data/users_guide/test_020/result.output
|
118
|
+
- test/data/users_guide/test_020/views/page.rbhtml
|
119
|
+
- test/data/users_guide/test_021/main.rb
|
120
|
+
- test/data/users_guide/test_021/result.output
|
121
|
+
- test/data/users_guide/test_021/views/page.rbhtml
|
122
|
+
- test/data/users_guide/test_030/main.rb
|
123
|
+
- test/data/users_guide/test_030/result.output
|
124
|
+
- test/data/users_guide/test_030/views/_layout.rbhtml
|
125
|
+
- test/data/users_guide/test_030/views/page.rbhtml
|
126
|
+
- test/data/users_guide/test_040/main.rb
|
127
|
+
- test/data/users_guide/test_040/result.output
|
128
|
+
- test/data/users_guide/test_040/views/_layout.rbhtml
|
129
|
+
- test/data/users_guide/test_040/views/page.rbhtml
|
130
|
+
- test/data/users_guide/test_050/main.rb
|
131
|
+
- test/data/users_guide/test_050/result.output
|
132
|
+
- test/data/users_guide/test_050/views/_layout.rbhtml
|
133
|
+
- test/data/users_guide/test_050/views/page.rbhtml
|
134
|
+
- test/data/users_guide/test_051/main.rb
|
135
|
+
- test/data/users_guide/test_051/result.output
|
136
|
+
- test/data/users_guide/test_051/views/_layout.rbhtml
|
137
|
+
- test/data/users_guide/test_051/views/page.rbhtml
|
138
|
+
- test/data/users_guide/test_060/main.rb
|
139
|
+
- test/data/users_guide/test_060/result.output
|
140
|
+
- test/data/users_guide/test_060/views/_footer.rbhtml
|
141
|
+
- test/data/users_guide/test_060/views/_header.rbhtml
|
142
|
+
- test/data/users_guide/test_060/views/_layout.rbhtml
|
143
|
+
- test/data/users_guide/test_060/views/page.rbhtml
|
144
|
+
- test/data/users_guide/test_070/main.rb
|
145
|
+
- test/data/users_guide/test_070/result.output
|
146
|
+
- test/data/users_guide/test_070/views/_footer.rbhtml
|
147
|
+
- test/data/users_guide/test_070/views/_header.rbhtml
|
148
|
+
- test/data/users_guide/test_070/views/_layout.rbhtml
|
149
|
+
- test/data/users_guide/test_070/views/page.rbhtml
|
150
|
+
- test/data/users_guide/test_capturing/main.rb
|
151
|
+
- test/data/users_guide/test_capturing/result.output
|
152
|
+
- test/data/users_guide/test_capturing/views/_layout.rbhtml
|
153
|
+
- test/data/users_guide/test_capturing/views/blog-post.rbhtml
|
154
|
+
- test/data/users_guide/test_context/context.rb
|
155
|
+
- test/data/users_guide/test_context/context.yaml
|
156
|
+
- test/data/users_guide/test_context/example.rbhtml
|
157
|
+
- test/data/users_guide/test_context/result1.output
|
158
|
+
- test/data/users_guide/test_context/result2.output
|
159
|
+
- test/data/users_guide/test_context/result3.output
|
160
|
+
- test/data/users_guide/test_context/result4.output
|
161
|
+
- test/data/users_guide/test_convert/example.rbhtml
|
162
|
+
- test/data/users_guide/test_convert/result1.output
|
163
|
+
- test/data/users_guide/test_convert/result2.output
|
164
|
+
- test/data/users_guide/test_escape/main.rb
|
165
|
+
- test/data/users_guide/test_escape/result.output
|
166
|
+
- test/data/users_guide/test_escape/views/page.rbhtml
|
167
|
+
- test/data/users_guide/test_execute/example.rbhtml
|
168
|
+
- test/data/users_guide/test_execute/result.output
|
169
|
+
- test/data/users_guide/test_fragmentcache/cache.d/items/1
|
170
|
+
- test/data/users_guide/test_fragmentcache/main.rb
|
171
|
+
- test/data/users_guide/test_fragmentcache/result.output
|
172
|
+
- test/data/users_guide/test_fragmentcache/result2.output
|
173
|
+
- test/data/users_guide/test_fragmentcache/views/items.rbhtml
|
174
|
+
- test/data/users_guide/test_logging/ex-logger.rb
|
175
|
+
- test/data/users_guide/test_logging/example.rbhtml
|
176
|
+
- test/data/users_guide/test_logging/result1.output
|
177
|
+
- test/data/users_guide/test_logging/result2.output
|
178
|
+
- test/data/users_guide/test_m17n/m17n.rb
|
179
|
+
- test/data/users_guide/test_m17n/m17n.rbhtml
|
180
|
+
- test/data/users_guide/test_m17n/result.output
|
181
|
+
- test/data/users_guide/test_m17n/result_en.output
|
182
|
+
- test/data/users_guide/test_m17n/result_fr.output
|
183
|
+
- test/data/users_guide/test_nested/main.rb
|
184
|
+
- test/data/users_guide/test_nested/result.output
|
185
|
+
- test/data/users_guide/test_nested/views/_blog_layout.rbhtml
|
186
|
+
- test/data/users_guide/test_nested/views/_site_layout.rbhtml
|
187
|
+
- test/data/users_guide/test_nested/views/blog_post.rbhtml
|
188
|
+
- test/data/users_guide/test_preprocessing/pp-example1.rb
|
189
|
+
- test/data/users_guide/test_preprocessing/result1a.output
|
190
|
+
- test/data/users_guide/test_preprocessing/result1b.output
|
191
|
+
- test/data/users_guide/test_preprocessing/result1c.output
|
192
|
+
- test/data/users_guide/test_preprocessing/result2a.output
|
193
|
+
- test/data/users_guide/test_preprocessing/result2b.output
|
194
|
+
- test/data/users_guide/test_preprocessing/result3a.output
|
195
|
+
- test/data/users_guide/test_preprocessing/result3b.output
|
196
|
+
- test/data/users_guide/test_preprocessing/views/pp-example1.rbhtml
|
197
|
+
- test/data/users_guide/test_preprocessing/views/pp-example2.rbhtml
|
198
|
+
- test/data/users_guide/test_preprocessing/views/pp-example3.rbhtml
|
199
|
+
- test/data/users_guide/test_retrieve/example.rbhtml
|
200
|
+
- test/data/users_guide/test_retrieve/result1.output
|
201
|
+
- test/data/users_guide/test_retrieve/result2.output
|
202
|
+
- test/data/users_guide/test_retrieve/result3.output
|
203
|
+
- test/data/users_guide/test_retrieve/result4.output
|
204
|
+
- test/data/users_guide/test_retrieve/result5.output
|
205
|
+
- test/data/users_guide/test_safe/result.output
|
206
|
+
- test/data/users_guide/test_safe/safe-test.rb
|
207
|
+
- test/data/users_guide/test_safehelper/main.rb
|
208
|
+
- test/data/users_guide/test_safehelper/result.output
|
209
|
+
- test/data/users_guide/test_syntax_check/example.rbhtml
|
210
|
+
- test/data/users_guide/test_syntax_check/result.output
|
211
|
+
- test/data/users_guide/test_trace/layout.rbhtml
|
212
|
+
- test/data/users_guide/test_trace/main.rbhtml
|
213
|
+
- test/data/users_guide/test_trace/result.output
|
214
|
+
- test/data/users_guide/test_trace/trace-example.rb
|
215
|
+
- test/oktest.rb
|
159
216
|
- test/test_all.rb
|
160
217
|
- test/test_engine.rb
|
161
218
|
- test/test_engine.yaml
|
@@ -164,34 +221,16 @@ files:
|
|
164
221
|
- test/test_htmlhelper.rb
|
165
222
|
- test/test_main.rb
|
166
223
|
- test/test_main.yaml
|
224
|
+
- test/test_safe.rb
|
225
|
+
- test/test_store.rb
|
226
|
+
- test/test_tcache.rb
|
167
227
|
- test/test_template.rb
|
168
228
|
- test/test_template.yaml
|
169
229
|
- test/test_users_guide.rb
|
170
230
|
- test/testcase-helper.rb
|
231
|
+
- test/testunit-assertions.rb
|
171
232
|
- doc/docstyle.css
|
172
|
-
- doc/examples.html
|
173
|
-
- doc/faq.html
|
174
233
|
- doc/users-guide.html
|
175
|
-
- examples/form
|
176
|
-
- examples/form/create.rbhtml
|
177
|
-
- examples/form/form.rbhtml
|
178
|
-
- examples/form/layout.rbhtml
|
179
|
-
- examples/form/main.rb
|
180
|
-
- examples/form/Makefile
|
181
|
-
- examples/form/Rakefile
|
182
|
-
- examples/form/update.rbhtml
|
183
|
-
- examples/preprocessing
|
184
|
-
- examples/preprocessing/helper.rb
|
185
|
-
- examples/preprocessing/main.rb
|
186
|
-
- examples/preprocessing/Makefile
|
187
|
-
- examples/preprocessing/Rakefile
|
188
|
-
- examples/preprocessing/select.rbhtml
|
189
|
-
- examples/preprocessing/select.rbhtml.cache
|
190
|
-
- examples/table
|
191
|
-
- examples/table/Makefile
|
192
|
-
- examples/table/Rakefile
|
193
|
-
- examples/table/table.rb
|
194
|
-
- examples/table/table.rbhtml
|
195
234
|
- README.txt
|
196
235
|
- CHANGES.txt
|
197
236
|
- MIT-LICENSE
|
@@ -200,35 +239,22 @@ files:
|
|
200
239
|
- benchmark/bench.rb
|
201
240
|
- benchmark/bench_context.rb
|
202
241
|
- benchmark/bench_context.yaml
|
203
|
-
- benchmark/
|
242
|
+
- benchmark/Makefile
|
204
243
|
- benchmark/templates/_footer.html
|
205
244
|
- benchmark/templates/_header.html
|
206
245
|
- benchmark/templates/bench_eruby.rhtml
|
207
246
|
- benchmark/templates/bench_tenjin.rbhtml
|
208
|
-
-
|
209
|
-
-
|
210
|
-
-
|
211
|
-
-
|
212
|
-
-
|
213
|
-
-
|
214
|
-
-
|
215
|
-
|
216
|
-
- doc-api/classes/Tenjin/HtmlHelper.html
|
217
|
-
- doc-api/classes/Tenjin/Preprocessor.html
|
218
|
-
- doc-api/classes/Tenjin/Template.html
|
219
|
-
- doc-api/classes/Tenjin.html
|
220
|
-
- doc-api/created.rid
|
221
|
-
- doc-api/files
|
222
|
-
- doc-api/files/lib
|
223
|
-
- doc-api/files/lib/tenjin_rb.html
|
224
|
-
- doc-api/files/README_txt.html
|
225
|
-
- doc-api/fr_class_index.html
|
226
|
-
- doc-api/fr_file_index.html
|
227
|
-
- doc-api/fr_method_index.html
|
228
|
-
- doc-api/index.html
|
229
|
-
- doc-api/rdoc-style.css
|
230
|
-
has_rdoc: false
|
247
|
+
- public_html/_layout.rbhtml
|
248
|
+
- public_html/css/style.css
|
249
|
+
- public_html/env.rbhtml
|
250
|
+
- public_html/favicon.ico
|
251
|
+
- public_html/hello.rbhtml
|
252
|
+
- public_html/index.rbhtml
|
253
|
+
- public_html/rbtenjin.cgi
|
254
|
+
has_rdoc: true
|
231
255
|
homepage: http://www.kuwata-lab.com/tenjin/
|
256
|
+
licenses: []
|
257
|
+
|
232
258
|
post_install_message:
|
233
259
|
rdoc_options: []
|
234
260
|
|
@@ -249,9 +275,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
275
|
requirements: []
|
250
276
|
|
251
277
|
rubyforge_project: tenjin
|
252
|
-
rubygems_version: 1.
|
278
|
+
rubygems_version: 1.3.5
|
253
279
|
signing_key:
|
254
|
-
specification_version:
|
280
|
+
specification_version: 3
|
255
281
|
summary: very fast and full-featured template engine
|
256
282
|
test_files:
|
257
283
|
- test/test_all.rb
|
data/doc-api/classes/Tenjin.html
DELETED
@@ -1,141 +0,0 @@
|
|
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>Module: Tenjin</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="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Tenjin</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/tenjin_rb.html">
|
59
|
-
lib/tenjin.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
<div id="description">
|
76
|
-
<p>
|
77
|
-
<a href="Tenjin.html">Tenjin</a> module
|
78
|
-
</p>
|
79
|
-
<p>
|
80
|
-
$Rev: 65 $ $Release: 0.6.2 $
|
81
|
-
</p>
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
|
92
|
-
<!-- if includes -->
|
93
|
-
|
94
|
-
<div id="section">
|
95
|
-
|
96
|
-
<div id="class-list">
|
97
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
98
|
-
|
99
|
-
Module <a href="Tenjin/ContextHelper.html" class="link">Tenjin::ContextHelper</a><br />
|
100
|
-
Module <a href="Tenjin/HtmlHelper.html" class="link">Tenjin::HtmlHelper</a><br />
|
101
|
-
Class <a href="Tenjin/ArrayBufferTemplate.html" class="link">Tenjin::ArrayBufferTemplate</a><br />
|
102
|
-
Class <a href="Tenjin/BaseContext.html" class="link">Tenjin::BaseContext</a><br />
|
103
|
-
Class <a href="Tenjin/Context.html" class="link">Tenjin::Context</a><br />
|
104
|
-
Class <a href="Tenjin/Engine.html" class="link">Tenjin::Engine</a><br />
|
105
|
-
Class <a href="Tenjin/ErubisTemplate.html" class="link">Tenjin::ErubisTemplate</a><br />
|
106
|
-
Class <a href="Tenjin/Preprocessor.html" class="link">Tenjin::Preprocessor</a><br />
|
107
|
-
Class <a href="Tenjin/Template.html" class="link">Tenjin::Template</a><br />
|
108
|
-
|
109
|
-
</div>
|
110
|
-
|
111
|
-
<div id="constants-list">
|
112
|
-
<h3 class="section-bar">Constants</h3>
|
113
|
-
|
114
|
-
<div class="name-list">
|
115
|
-
<table summary="Constants">
|
116
|
-
<tr class="top-aligned-row context-row">
|
117
|
-
<td class="context-item-name">RELEASE</td>
|
118
|
-
<td>=</td>
|
119
|
-
<td class="context-item-value">('$Release: 0.6.2 $' =~ /[\d.]+/) && $&</td>
|
120
|
-
</tr>
|
121
|
-
</table>
|
122
|
-
</div>
|
123
|
-
</div>
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
<!-- if method_list -->
|
131
|
-
|
132
|
-
|
133
|
-
</div>
|
134
|
-
|
135
|
-
|
136
|
-
<div id="validator-badges">
|
137
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
138
|
-
</div>
|
139
|
-
|
140
|
-
</body>
|
141
|
-
</html>
|