kwartz 3.1.2 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. data/CHANGES +444 -0
  2. data/README.txt +4 -1
  3. data/bin/kwartz +2 -2
  4. data/doc-api/classes/Kwartz.html +16 -7
  5. data/doc-api/classes/Kwartz/Assertion.html +6 -6
  6. data/doc-api/classes/Kwartz/AssertionError.html +6 -6
  7. data/doc-api/classes/Kwartz/AttrInfo.html +71 -61
  8. data/doc-api/classes/Kwartz/BaseError.html +12 -12
  9. data/doc-api/classes/Kwartz/BaseTranslator.html +104 -74
  10. data/doc-api/classes/Kwartz/CharacterType.html +24 -24
  11. data/doc-api/classes/Kwartz/CommandOptionError.html +7 -7
  12. data/doc-api/classes/Kwartz/CommandOptions.html +50 -50
  13. data/doc-api/classes/Kwartz/Config.html +5 -0
  14. data/doc-api/classes/Kwartz/ConvertError.html +12 -12
  15. data/doc-api/classes/Kwartz/Converter.html +31 -33
  16. data/doc-api/classes/Kwartz/CssStyleParser.html +207 -168
  17. data/doc-api/classes/Kwartz/Defun.html +32 -31
  18. data/doc-api/classes/Kwartz/{HandlerArgument.html → Directive.html} +27 -53
  19. data/doc-api/classes/Kwartz/ElementInfo.html +68 -53
  20. data/doc-api/classes/Kwartz/EperlExpressionParser.html +185 -0
  21. data/doc-api/classes/Kwartz/EperlHandler.html +65 -58
  22. data/doc-api/classes/Kwartz/EperlTranslator.html +14 -7
  23. data/doc-api/classes/Kwartz/ErubisTranslator.html +14 -7
  24. data/doc-api/classes/Kwartz/ErubyTranslator.html +14 -7
  25. data/doc-api/classes/Kwartz/ExpandStatement.html +20 -20
  26. data/doc-api/classes/Kwartz/Expander.html +358 -0
  27. data/doc-api/classes/Kwartz/Handler.html +287 -157
  28. data/doc-api/classes/Kwartz/{StatementHelper.html → HandlerHelper.html} +307 -112
  29. data/doc-api/classes/Kwartz/Helper/ActionViewHelper.html +23 -23
  30. data/doc-api/classes/Kwartz/Helper/RailsTemplate.html +96 -96
  31. data/doc-api/classes/Kwartz/JstlExpressionParser.html +181 -0
  32. data/doc-api/classes/Kwartz/JstlHandler.html +134 -126
  33. data/doc-api/classes/Kwartz/JstlTranslator.html +21 -14
  34. data/doc-api/classes/Kwartz/KwartzError.html +6 -6
  35. data/doc-api/classes/Kwartz/Main.html +4 -4
  36. data/doc-api/classes/Kwartz/NativeExpression.html +19 -19
  37. data/doc-api/classes/Kwartz/NativeStatement.html +24 -24
  38. data/doc-api/classes/Kwartz/Node.html +7 -7
  39. data/doc-api/classes/Kwartz/PIErubisTranslator.html +21 -14
  40. data/doc-api/classes/Kwartz/ParseError.html +6 -6
  41. data/doc-api/classes/Kwartz/PerlExpressionParser.html +185 -0
  42. data/doc-api/classes/Kwartz/PerlHandler.html +353 -0
  43. data/doc-api/classes/Kwartz/PerlTranslator.html +226 -0
  44. data/doc-api/classes/Kwartz/PhpExpressionParser.html +185 -0
  45. data/doc-api/classes/Kwartz/PhpHandler.html +63 -56
  46. data/doc-api/classes/Kwartz/PhpTranslator.html +21 -14
  47. data/doc-api/classes/Kwartz/PresentationLogicParser.html +126 -123
  48. data/doc-api/classes/Kwartz/PrintStatement.html +18 -18
  49. data/doc-api/classes/Kwartz/RailsHandler.html +84 -85
  50. data/doc-api/classes/Kwartz/RailsTranslator.html +13 -6
  51. data/doc-api/classes/Kwartz/RubyExpressionParser.html +180 -0
  52. data/doc-api/classes/Kwartz/RubyHandler.html +73 -69
  53. data/doc-api/classes/Kwartz/RubyStyleParser.html +86 -86
  54. data/doc-api/classes/Kwartz/RubyTranslator.html +28 -21
  55. data/doc-api/classes/Kwartz/Ruleset.html +622 -1
  56. data/doc-api/classes/Kwartz/StrutsTranslator.html +14 -14
  57. data/doc-api/classes/Kwartz/TagInfo.html +52 -27
  58. data/doc-api/classes/Kwartz/TextConverter.html +75 -37
  59. data/doc-api/classes/Kwartz/Translator.html +54 -53
  60. data/doc-api/classes/Kwartz/Util.html +25 -25
  61. data/doc-api/created.rid +1 -1
  62. data/doc-api/files/__/README_txt.html +7 -2
  63. data/doc-api/files/kwartz/assert_rb.html +2 -2
  64. data/doc-api/files/kwartz/binding/eperl_rb.html +2 -2
  65. data/doc-api/files/kwartz/binding/erubis_rb.html +2 -2
  66. data/doc-api/files/kwartz/binding/eruby_rb.html +2 -2
  67. data/doc-api/files/kwartz/binding/jstl_rb.html +2 -2
  68. data/doc-api/files/kwartz/binding/perl_rb.html +115 -0
  69. data/doc-api/files/kwartz/binding/php_rb.html +2 -2
  70. data/doc-api/files/kwartz/binding/pierubis_rb.html +2 -2
  71. data/doc-api/files/kwartz/binding/rails_rb.html +2 -2
  72. data/doc-api/files/kwartz/binding/ruby_rb.html +2 -2
  73. data/doc-api/files/kwartz/binding/struts_rb.html +2 -2
  74. data/doc-api/files/kwartz/config_rb.html +2 -2
  75. data/doc-api/files/kwartz/converter_rb.html +2 -2
  76. data/doc-api/files/kwartz/defun_rb.html +2 -2
  77. data/doc-api/files/kwartz/error_rb.html +2 -2
  78. data/doc-api/files/kwartz/helper/rails_rb.html +2 -2
  79. data/doc-api/files/kwartz/main_rb.html +3 -2
  80. data/doc-api/files/kwartz/node_rb.html +2 -2
  81. data/doc-api/files/kwartz/parser_rb.html +2 -2
  82. data/doc-api/files/kwartz/translator_rb.html +2 -2
  83. data/doc-api/files/kwartz/util/assert-text-equal_rb.html +2 -2
  84. data/doc-api/files/kwartz/util/testcase-helper_rb.html +2 -2
  85. data/doc-api/files/kwartz/util_rb.html +2 -2
  86. data/doc-api/files/kwartz_rb.html +2 -2
  87. data/doc-api/fr_class_index.html +10 -5
  88. data/doc-api/fr_file_index.html +1 -0
  89. data/doc-api/fr_method_index.html +268 -239
  90. data/doc/docstyle.css +9 -3
  91. data/doc/img/fig05.png +0 -0
  92. data/doc/introduction-to-kwartz.html +3040 -0
  93. data/doc/pattern-catalog.html +5 -3
  94. data/doc/reference.html +680 -26
  95. data/doc/users-guide.html +222 -67
  96. data/kwartz.gemspec +4 -4
  97. data/lib/kwartz.rb +3 -3
  98. data/lib/kwartz/assert.rb +2 -2
  99. data/lib/kwartz/binding/eperl.rb +71 -31
  100. data/lib/kwartz/binding/erubis.rb +3 -2
  101. data/lib/kwartz/binding/eruby.rb +3 -2
  102. data/lib/kwartz/binding/jstl.rb +66 -29
  103. data/lib/kwartz/binding/perl.rb +230 -0
  104. data/lib/kwartz/binding/php.rb +69 -29
  105. data/lib/kwartz/binding/pierubis.rb +3 -2
  106. data/lib/kwartz/binding/rails.rb +18 -18
  107. data/lib/kwartz/binding/ruby.rb +74 -42
  108. data/lib/kwartz/binding/struts.rb +22 -21
  109. data/lib/kwartz/config.rb +4 -4
  110. data/lib/kwartz/converter.rb +465 -345
  111. data/lib/kwartz/defun.rb +2 -2
  112. data/lib/kwartz/error.rb +2 -2
  113. data/lib/kwartz/helper/rails.rb +2 -2
  114. data/lib/kwartz/main.rb +5 -4
  115. data/lib/kwartz/node.rb +92 -144
  116. data/lib/kwartz/parser.rb +112 -103
  117. data/lib/kwartz/translator.rb +14 -6
  118. data/lib/kwartz/util.rb +2 -2
  119. data/lib/kwartz/util/assert-text-equal.rb +2 -2
  120. data/lib/kwartz/util/testcase-helper.rb +1 -1
  121. data/test/test-compile.rb +2 -2
  122. data/test/test-compile.yaml +81 -0
  123. data/test/test-converter.rb +4 -8
  124. data/test/test-converter.yaml +152 -3
  125. data/test/test-directives.rb +2 -2
  126. data/test/test-directives.yaml +222 -0
  127. data/test/test-main.rb +6 -4
  128. data/test/test-main.yaml +66 -1
  129. data/test/test-parser.rb +12 -3
  130. data/test/test-parser.yaml +64 -51
  131. data/test/test-rails.rb +2 -2
  132. data/test/test-ruleset.rb +2 -2
  133. data/test/test-ruleset.yaml +465 -4
  134. data/test/test.log +6 -0
  135. data/test/test.rb +2 -2
  136. metadata +116 -106
  137. data/ChangeLog +0 -156
  138. data/doc-api/classes/Kwartz/DocumentRuleset.html +0 -369
  139. data/doc-api/classes/Kwartz/ElementExpander.html +0 -325
  140. data/doc-api/classes/Kwartz/ElementRuleset.html +0 -612
@@ -0,0 +1,6 @@
1
+ Loaded suite test
2
+ Started
3
+ ..............................................................................................................................................................................................................................................................................................
4
+ Finished in 4.43764 seconds.
5
+
6
+ 286 tests, 328 assertions, 0 failures, 0 errors
@@ -1,6 +1,6 @@
1
1
  ###
2
- ### $Rev: 117 $
3
- ### $Release: 3.1.2 $
2
+ ### $Rev$
3
+ ### $Release: 3.2.0 $
4
4
  ### copyright(c) 2004-2006 kuwata-lab.com all rights reserved
5
5
  ###
6
6
 
metadata CHANGED
@@ -1,67 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
3
- specification_version: 1
4
2
  name: kwartz
5
3
  version: !ruby/object:Gem::Version
6
- version: 3.1.2
7
- date: 2006-10-22 00:00:00 +09:00
8
- summary: a template system for Ruby, PHP, and Java
9
- require_paths:
10
- - lib
11
- email:
12
- homepage: http://www.kuwata-lab.com/kwartz
13
- rubyforge_project:
14
- description: Kwartz is a template system which realized the concept 'Independence of Presentation Logic'(IoPL). It means that Kwartz can separates presentation logics from both business logics (= main program) and presentation data file (= HTML file), thus HTML design is not breaded at all. In addition, Kwartz supports eRuby, PHP, JSP, and ePerl.
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: false
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ hash: 15
5
+ prerelease: false
6
+ segments:
7
+ - 3
8
+ - 2
9
+ - 0
10
+ version: 3.2.0
25
11
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
12
  authors:
29
13
  - Makoto Kuwata
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-10-26 00:00:00 +09:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: abstract
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 23
30
+ segments:
31
+ - 1
32
+ - 0
33
+ - 0
34
+ version: 1.0.0
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ description: " Kwartz is a template system which realized the concept\n 'Independence of Presentation Logic'(IoPL).\n It means that Kwartz can separates presentation logics from\n both business logics (= main program) and presentation data\n file (= HTML file), thus HTML design is not breaded at all.\n In addition, Kwartz supports eRuby, PHP, JSP, and ePerl.\n"
38
+ email:
39
+ executables:
40
+ - kwartz
41
+ extensions: []
42
+
43
+ extra_rdoc_files: []
44
+
30
45
  files:
31
- - lib/kwartz
32
- - lib/kwartz.rb
33
46
  - lib/kwartz/assert.rb
34
- - lib/kwartz/binding
35
- - lib/kwartz/config.rb
36
- - lib/kwartz/converter.rb
37
- - lib/kwartz/defun.rb
38
- - lib/kwartz/error.rb
39
- - lib/kwartz/helper
40
- - lib/kwartz/main.rb
41
- - lib/kwartz/node.rb
42
- - lib/kwartz/parser.rb
43
- - lib/kwartz/translator.rb
44
- - lib/kwartz/util
45
- - lib/kwartz/util.rb
46
47
  - lib/kwartz/binding/eperl.rb
47
48
  - lib/kwartz/binding/erubis.rb
48
49
  - lib/kwartz/binding/eruby.rb
49
50
  - lib/kwartz/binding/jstl.rb
51
+ - lib/kwartz/binding/perl.rb
50
52
  - lib/kwartz/binding/php.rb
51
53
  - lib/kwartz/binding/pierubis.rb
52
54
  - lib/kwartz/binding/rails.rb
53
55
  - lib/kwartz/binding/ruby.rb
54
56
  - lib/kwartz/binding/struts.rb
57
+ - lib/kwartz/config.rb
58
+ - lib/kwartz/converter.rb
59
+ - lib/kwartz/defun.rb
60
+ - lib/kwartz/error.rb
55
61
  - lib/kwartz/helper/rails.rb
62
+ - lib/kwartz/main.rb
63
+ - lib/kwartz/node.rb
64
+ - lib/kwartz/parser.rb
65
+ - lib/kwartz/translator.rb
56
66
  - lib/kwartz/util/assert-text-equal.rb
57
67
  - lib/kwartz/util/testcase-helper.rb
68
+ - lib/kwartz/util.rb
69
+ - lib/kwartz.rb
58
70
  - bin/kwartz
59
- - examples/breadcrumbs1
60
- - examples/breadcrumbs2
61
- - examples/pagelayout
62
- - examples/rails1
63
- - examples/rails2
64
- - examples/table1
65
71
  - examples/breadcrumbs1/breadcrumbs.eruby.plogic
66
72
  - examples/breadcrumbs1/breadcrumbs.html
67
73
  - examples/breadcrumbs1/breadcrumbs.jstl.plogic
@@ -107,12 +113,6 @@ files:
107
113
  - examples/rails1/show.html
108
114
  - examples/rails1/show.plogic
109
115
  - examples/rails1/writer.plogic
110
- - examples/rails2/app
111
- - examples/rails2/db
112
- - examples/rails2/app/controllers
113
- - examples/rails2/app/helpers
114
- - examples/rails2/app/models
115
- - examples/rails2/app/views
116
116
  - examples/rails2/app/controllers/application.rb
117
117
  - examples/rails2/app/controllers/groups_controller.rb
118
118
  - examples/rails2/app/controllers/members_controller.rb
@@ -121,9 +121,6 @@ files:
121
121
  - examples/rails2/app/helpers/members_helper.rb
122
122
  - examples/rails2/app/models/group.rb
123
123
  - examples/rails2/app/models/member.rb
124
- - examples/rails2/app/views/groups
125
- - examples/rails2/app/views/layouts
126
- - examples/rails2/app/views/members
127
124
  - examples/rails2/app/views/groups/_form.html
128
125
  - examples/rails2/app/views/groups/_form.plogic
129
126
  - examples/rails2/app/views/groups/_link.plogic
@@ -181,7 +178,9 @@ files:
181
178
  - test/test-rails.yaml
182
179
  - test/test-ruleset.rb
183
180
  - test/test-ruleset.yaml
181
+ - test/test.log
184
182
  - test/test.rb
183
+ - doc/introduction-to-kwartz.html
185
184
  - doc/pattern-catalog.html
186
185
  - doc/reference.html
187
186
  - doc/users-guide.html
@@ -190,21 +189,10 @@ files:
190
189
  - doc/img/fig02.png
191
190
  - doc/img/fig03.png
192
191
  - doc/img/fig04.png
192
+ - doc/img/fig05.png
193
193
  - doc/pattern-catalog/design.css
194
194
  - doc/pattern-catalog/design.html
195
- - doc-api/classes
196
- - doc-api/created.rid
197
- - doc-api/files
198
- - doc-api/fr_class_index.html
199
- - doc-api/fr_file_index.html
200
- - doc-api/fr_method_index.html
201
- - doc-api/index.html
202
- - doc-api/rdoc-style.css
203
195
  - doc-api/classes/ActionView.html
204
- - doc-api/classes/Kwartz
205
- - doc-api/classes/Kwartz.html
206
- - doc-api/classes/Test
207
- - doc-api/classes/Test.html
208
196
  - doc-api/classes/Kwartz/Assertion.html
209
197
  - doc-api/classes/Kwartz/AssertionError.html
210
198
  - doc-api/classes/Kwartz/AttrInfo.html
@@ -218,22 +206,24 @@ files:
218
206
  - doc-api/classes/Kwartz/ConvertError.html
219
207
  - doc-api/classes/Kwartz/CssStyleParser.html
220
208
  - doc-api/classes/Kwartz/Defun.html
221
- - doc-api/classes/Kwartz/DocumentRuleset.html
222
- - doc-api/classes/Kwartz/ElementExpander.html
209
+ - doc-api/classes/Kwartz/Directive.html
223
210
  - doc-api/classes/Kwartz/ElementInfo.html
224
- - doc-api/classes/Kwartz/ElementRuleset.html
211
+ - doc-api/classes/Kwartz/EperlExpressionParser.html
225
212
  - doc-api/classes/Kwartz/EperlHandler.html
226
213
  - doc-api/classes/Kwartz/EperlTranslator.html
227
214
  - doc-api/classes/Kwartz/ErubisHandler.html
228
215
  - doc-api/classes/Kwartz/ErubisTranslator.html
229
216
  - doc-api/classes/Kwartz/ErubyHandler.html
230
217
  - doc-api/classes/Kwartz/ErubyTranslator.html
218
+ - doc-api/classes/Kwartz/Expander.html
231
219
  - doc-api/classes/Kwartz/ExpandStatement.html
232
220
  - doc-api/classes/Kwartz/Expression.html
233
221
  - doc-api/classes/Kwartz/Handler.html
234
- - doc-api/classes/Kwartz/HandlerArgument.html
235
- - doc-api/classes/Kwartz/Helper
222
+ - doc-api/classes/Kwartz/HandlerHelper.html
223
+ - doc-api/classes/Kwartz/Helper/ActionViewHelper.html
224
+ - doc-api/classes/Kwartz/Helper/RailsTemplate.html
236
225
  - doc-api/classes/Kwartz/Helper.html
226
+ - doc-api/classes/Kwartz/JstlExpressionParser.html
237
227
  - doc-api/classes/Kwartz/JstlHandler.html
238
228
  - doc-api/classes/Kwartz/JstlTranslator.html
239
229
  - doc-api/classes/Kwartz/KwartzError.html
@@ -242,6 +232,10 @@ files:
242
232
  - doc-api/classes/Kwartz/NativeStatement.html
243
233
  - doc-api/classes/Kwartz/Node.html
244
234
  - doc-api/classes/Kwartz/ParseError.html
235
+ - doc-api/classes/Kwartz/PerlExpressionParser.html
236
+ - doc-api/classes/Kwartz/PerlHandler.html
237
+ - doc-api/classes/Kwartz/PerlTranslator.html
238
+ - doc-api/classes/Kwartz/PhpExpressionParser.html
245
239
  - doc-api/classes/Kwartz/PhpHandler.html
246
240
  - doc-api/classes/Kwartz/PhpTranslator.html
247
241
  - doc-api/classes/Kwartz/PIErubisHandler.html
@@ -250,73 +244,89 @@ files:
250
244
  - doc-api/classes/Kwartz/PrintStatement.html
251
245
  - doc-api/classes/Kwartz/RailsHandler.html
252
246
  - doc-api/classes/Kwartz/RailsTranslator.html
247
+ - doc-api/classes/Kwartz/RubyExpressionParser.html
253
248
  - doc-api/classes/Kwartz/RubyHandler.html
254
249
  - doc-api/classes/Kwartz/RubyStyleParser.html
255
250
  - doc-api/classes/Kwartz/RubyTranslator.html
256
251
  - doc-api/classes/Kwartz/Ruleset.html
257
252
  - doc-api/classes/Kwartz/Statement.html
258
- - doc-api/classes/Kwartz/StatementHelper.html
259
253
  - doc-api/classes/Kwartz/StrutsTranslator.html
260
254
  - doc-api/classes/Kwartz/TagInfo.html
261
255
  - doc-api/classes/Kwartz/TextConverter.html
262
256
  - doc-api/classes/Kwartz/Translator.html
263
257
  - doc-api/classes/Kwartz/Util.html
264
- - doc-api/classes/Kwartz/Helper/ActionViewHelper.html
265
- - doc-api/classes/Kwartz/Helper/RailsTemplate.html
258
+ - doc-api/classes/Kwartz.html
266
259
  - doc-api/classes/Test/Unit.html
267
- - doc-api/files/__
268
- - doc-api/files/kwartz
269
- - doc-api/files/kwartz_rb.html
260
+ - doc-api/classes/Test.html
261
+ - doc-api/created.rid
270
262
  - doc-api/files/__/README_txt.html
271
263
  - doc-api/files/kwartz/assert_rb.html
272
- - doc-api/files/kwartz/binding
273
- - doc-api/files/kwartz/config_rb.html
274
- - doc-api/files/kwartz/converter_rb.html
275
- - doc-api/files/kwartz/defun_rb.html
276
- - doc-api/files/kwartz/error_rb.html
277
- - doc-api/files/kwartz/helper
278
- - doc-api/files/kwartz/main_rb.html
279
- - doc-api/files/kwartz/node_rb.html
280
- - doc-api/files/kwartz/parser_rb.html
281
- - doc-api/files/kwartz/translator_rb.html
282
- - doc-api/files/kwartz/util
283
- - doc-api/files/kwartz/util_rb.html
284
264
  - doc-api/files/kwartz/binding/eperl_rb.html
285
265
  - doc-api/files/kwartz/binding/erubis_rb.html
286
266
  - doc-api/files/kwartz/binding/eruby_rb.html
287
267
  - doc-api/files/kwartz/binding/jstl_rb.html
268
+ - doc-api/files/kwartz/binding/perl_rb.html
288
269
  - doc-api/files/kwartz/binding/php_rb.html
289
270
  - doc-api/files/kwartz/binding/pierubis_rb.html
290
271
  - doc-api/files/kwartz/binding/rails_rb.html
291
272
  - doc-api/files/kwartz/binding/ruby_rb.html
292
273
  - doc-api/files/kwartz/binding/struts_rb.html
274
+ - doc-api/files/kwartz/config_rb.html
275
+ - doc-api/files/kwartz/converter_rb.html
276
+ - doc-api/files/kwartz/defun_rb.html
277
+ - doc-api/files/kwartz/error_rb.html
293
278
  - doc-api/files/kwartz/helper/rails_rb.html
279
+ - doc-api/files/kwartz/main_rb.html
280
+ - doc-api/files/kwartz/node_rb.html
281
+ - doc-api/files/kwartz/parser_rb.html
282
+ - doc-api/files/kwartz/translator_rb.html
294
283
  - doc-api/files/kwartz/util/assert-text-equal_rb.html
295
284
  - doc-api/files/kwartz/util/testcase-helper_rb.html
285
+ - doc-api/files/kwartz/util_rb.html
286
+ - doc-api/files/kwartz_rb.html
287
+ - doc-api/fr_class_index.html
288
+ - doc-api/fr_file_index.html
289
+ - doc-api/fr_method_index.html
290
+ - doc-api/index.html
291
+ - doc-api/rdoc-style.css
296
292
  - README.txt
297
- - ChangeLog
293
+ - CHANGES
298
294
  - LGPL
299
295
  - setup.rb
300
296
  - kwartz.gemspec
301
- test_files:
302
- - test/test.rb
303
- rdoc_options: []
304
-
305
- extra_rdoc_files: []
297
+ has_rdoc: true
298
+ homepage: http://www.kuwata-lab.com/kwartz
299
+ licenses: []
306
300
 
307
- executables:
308
- - kwartz
309
- extensions: []
301
+ post_install_message:
302
+ rdoc_options: []
310
303
 
304
+ require_paths:
305
+ - lib
306
+ required_ruby_version: !ruby/object:Gem::Requirement
307
+ none: false
308
+ requirements:
309
+ - - ">="
310
+ - !ruby/object:Gem::Version
311
+ hash: 3
312
+ segments:
313
+ - 0
314
+ version: "0"
315
+ required_rubygems_version: !ruby/object:Gem::Requirement
316
+ none: false
317
+ requirements:
318
+ - - ">="
319
+ - !ruby/object:Gem::Version
320
+ hash: 3
321
+ segments:
322
+ - 0
323
+ version: "0"
311
324
  requirements: []
312
325
 
313
- dependencies:
314
- - !ruby/object:Gem::Dependency
315
- name: abstract
316
- version_requirement:
317
- version_requirements: !ruby/object:Gem::Version::Requirement
318
- requirements:
319
- - - ">="
320
- - !ruby/object:Gem::Version
321
- version: 1.0.0
322
- version:
326
+ rubyforge_project:
327
+ rubygems_version: 1.3.7
328
+ signing_key:
329
+ specification_version: 3
330
+ summary: a template system for Ruby, PHP, and Java
331
+ test_files:
332
+ - test/test.rb
data/ChangeLog DELETED
@@ -1,156 +0,0 @@
1
- .+document: ChangeLog
2
- .?release: $Release: 3.1.2 $
3
- .?updated: $Date: 2006-10-22 12:04:52 +0900 (Sun, 22 Oct 2006) $
4
-
5
-
6
- * Release 3.1.2 (2006-10-22)
7
-
8
- [enhancements from 3.1.1]
9
-
10
- - Error reporting improved when using with Ruby on Rails.
11
- 'kwartz/helper/rails.rb' now show template filename and
12
- linenumber on where exception raised.
13
- Notice that you have to read *.cache file instead of *.html
14
- or *.plogic.
15
-
16
-
17
- * Release 3.1.1 (2006-09-29)
18
-
19
- [changes from 3.1.0]
20
-
21
- - Testdata and documents are integrated with Kwartz-php.
22
-
23
-
24
- * Release 3.1.0 (2006-09-24)
25
-
26
- [enhancements from 3.0.0]
27
-
28
- - Support of Ruby on Rails improved.
29
- Kwartz now provides template class for RoR.
30
- You don't have to convert *.html and *.plogic into *.rhtml.
31
- Kwartz directly render HTML page from *.html and *.plogic.
32
- See Kwartz Users' Guide for detail.
33
- http://www.kuwata-lab.com/kwartz/kwartz3-users-guide.03.html
34
-
35
- - New example 'example/rails2' added.
36
- It is a good example to use Kwartz with Ruby on Rails.
37
-
38
- - Command-line option '-l rails' support. This option extends
39
- directives in *.html to support Rails helper methods.
40
- See Kwartz Users' Guide for detail.
41
- http://www.kuwata-lab.com/kwartz/kwartz3-users-guide.03.html#rails-helper-methods
42
-
43
- - (experimental) Embedded pattern '@{...}@' and '@!{...}@' supported.
44
- They are equivarent to '<%=h ... %>' and '<%= ... %>' of ERB,
45
- but they are available for PHP and JSP as well as eRuby.
46
-
47
- - New command line optin '-a defun' support. It generates
48
- Ruby/PHP function to generate view page from *.html and *.plogic.
49
-
50
- [changes from 3.0.0]
51
-
52
- - Directive attribute name is changed from 'title' to 'kw:d'.
53
- You can change it in configuration file ('kwartz/config.rb').
54
-
55
-
56
-
57
-
58
- * Release 3.0.0
59
-
60
- [enhancements from 2.0.4]
61
-
62
- - Presentation logic is described in target language.
63
- It means that you can write presentatin logic in Ruby, PHP,
64
- and so on.
65
-
66
- - New properties 'elem:', 'stag:', 'cont:', 'etag:' are added.
67
- They replaces element, start-tag, content, end-tag with
68
- expression value. This is useful especially for Rails.
69
-
70
- new.html : presentation data file
71
- --------------------
72
- <form id="mark:form">
73
- Name: <input type="text" id="user_name">
74
- <input type="submit" id="mark:submit">
75
- </form>
76
- --------------------
77
-
78
- new.plogic : presentation logic file
79
- --------------------
80
- #form {
81
- stag: start_form_tag :action=>'create';
82
- }
83
- #user_name {
84
- elem: text_field 'user', 'name';
85
- }
86
- #submit {
87
- elem: submit_tag 'Create';
88
- }
89
- --------------------
90
-
91
- compile:
92
- ====================
93
- $ kwartz -p new.plogic new.html > new.rhtml
94
- ====================
95
-
96
- new.rhtml : compiled output script
97
- --------------------
98
- <%= start_form_tag :action=>'create' %>
99
- Name: <%= text_field 'user', 'name' %>
100
- <%= submit_tag 'Create' %>
101
- </form>
102
- --------------------
103
-
104
- See 'examples/rails1' for more details about Rails and Kwartz.
105
-
106
- - New keyword '_elem' added. '_elem' means element and
107
- it is equivarent to '_stag' + '_cont' + '_etag'.
108
-
109
- - New language 'rails' addes. It uses '<% -%>' instead of '<% %>'
110
- as embedded pattern.
111
-
112
- - New command-line option '-L layout' specifies layout file.
113
- ====================
114
- $ kwartz -p new.plogic -L layout.html new.html > new.rhtml
115
- ## this is equivarent to the following:
116
- ## $ kwartz -p new.plogic -i new.html layout.html > new.rhtml
117
- ====================
118
-
119
- - ...and more
120
-
121
-
122
- [changes from 2.0.4]
123
-
124
- - Property 'plogic:' is renamed to 'logic:'.
125
-
126
- - '@stag', '@cont', '@etag' is changed to
127
- '_stag', '_cont', '_etag' respectively.
128
-
129
- - Directive format is changed.
130
- See reference manual for details.
131
-
132
- - Directive attribute is changed from 'kw:d' to 'title'.
133
- (this may be change in the future.)
134
-
135
- - Directive 'id="replace:xxx"' is renamed to
136
- 'id="replace_element_with_element:xxx"' and
137
- 'id="replace_element_with_content:xxx"'.
138
-
139
- - Directive 'id="placeholder:xxx" is renamed to
140
- 'id="relace_content_with_element:xxx"' and
141
- 'id="relace_content_with_content:xxx"'.
142
-
143
- - 'analyze' action is obsolete (because presentation logic
144
- is described in Ruby, PHP, and so on).
145
-
146
- - 'defun' action is currently not supported
147
- (but is planned to be implemented in the future release).
148
-
149
- - Velocity is not supported.
150
-
151
- - Project name in RubyForge.org is changed from 'kwartz-ruby'
152
- to 'Kwartz', and gem file is also changed.
153
-
154
- - ...and more
155
-
156
- .-document: