slippers 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. data/LICENSE +20 -0
  2. data/README +56 -0
  3. data/Rakefile +27 -0
  4. data/VERSION.yml +4 -0
  5. data/examples/blog/README +3 -0
  6. data/examples/blog/blog.db +0 -0
  7. data/examples/blog/controller/main.rb +30 -0
  8. data/examples/blog/model/entry.rb +31 -0
  9. data/examples/blog/public/styles/blog.css +132 -0
  10. data/examples/blog/spec/blog.rb +87 -0
  11. data/examples/blog/start.rb +7 -0
  12. data/examples/blog/view/edit.st +19 -0
  13. data/examples/blog/view/edit.xhtml +17 -0
  14. data/examples/blog/view/entry.st +12 -0
  15. data/examples/blog/view/index.st +4 -0
  16. data/examples/blog/view/index.xhtml +17 -0
  17. data/examples/blog/view/layout.st +11 -0
  18. data/examples/blog/view/layout.xhtml +11 -0
  19. data/examples/blog/view/new.st +16 -0
  20. data/examples/blog/view/new.xhtml +16 -0
  21. data/examples/forms/Rakefile +22 -0
  22. data/examples/forms/controller/init.rb +12 -0
  23. data/examples/forms/controller/main.rb +20 -0
  24. data/examples/forms/controller/registration.rb +24 -0
  25. data/examples/forms/forms.db +0 -0
  26. data/examples/forms/model/core_extensions/string_extensions.rb +5 -0
  27. data/examples/forms/model/field.rb +33 -0
  28. data/examples/forms/model/form.rb +33 -0
  29. data/examples/forms/model/init.rb +18 -0
  30. data/examples/forms/model/orm/registration.rb +12 -0
  31. data/examples/forms/model/registration_form_builder.rb +7 -0
  32. data/examples/forms/model/registration_repository.rb +39 -0
  33. data/examples/forms/model/registration_rules/incorrect_email_format.rb +11 -0
  34. data/examples/forms/model/registration_rules/number_field.rb +10 -0
  35. data/examples/forms/model/registration_rules/required_field.rb +9 -0
  36. data/examples/forms/model/registration_validator.rb +17 -0
  37. data/examples/forms/public/css/ramaze_error.css +90 -0
  38. data/examples/forms/public/dispatch.fcgi +11 -0
  39. data/examples/forms/public/favicon.ico +0 -0
  40. data/examples/forms/public/js/jquery.js +3549 -0
  41. data/examples/forms/public/ramaze.png +0 -0
  42. data/examples/forms/public/web-application.js +0 -0
  43. data/examples/forms/spec/form_spec.rb +16 -0
  44. data/examples/forms/spec/main.rb +25 -0
  45. data/examples/forms/spec/registration_controller_spec.rb +0 -0
  46. data/examples/forms/spec/registration_repository_spec.rb +38 -0
  47. data/examples/forms/spec/registration_validator_spec.rb +53 -0
  48. data/examples/forms/spec/spec_helper.rb +3 -0
  49. data/examples/forms/start.rb +12 -0
  50. data/examples/forms/start.ru +16 -0
  51. data/examples/forms/view/error.xhtml +64 -0
  52. data/examples/forms/view/index.xhtml +34 -0
  53. data/examples/forms/view/page.xhtml +27 -0
  54. data/examples/forms/view/registration/index.st +26 -0
  55. data/examples/main_controller.rb +40 -0
  56. data/examples/start.rb +7 -0
  57. data/examples/todolist/README +1 -0
  58. data/examples/todolist/controller/main.rb +71 -0
  59. data/examples/todolist/layout/page.rb +31 -0
  60. data/examples/todolist/model/tasks.rb +14 -0
  61. data/examples/todolist/public/favicon.ico +0 -0
  62. data/examples/todolist/public/js/jquery.js +1923 -0
  63. data/examples/todolist/public/ramaze.png +0 -0
  64. data/examples/todolist/start.rb +11 -0
  65. data/examples/todolist/todolist.db +11 -0
  66. data/examples/todolist/view/index.st +39 -0
  67. data/examples/todolist/view/index.xhtml +17 -0
  68. data/examples/todolist/view/new.st +41 -0
  69. data/examples/todolist/view/new.xhtml +7 -0
  70. data/examples/todolist/view/tasks.st +6 -0
  71. data/examples/todolist.db +5 -0
  72. data/examples/view/index.st +11 -0
  73. data/examples/view/person/age.st +1 -0
  74. data/examples/view/person/age_renderer.rb +6 -0
  75. data/examples/view/person/index.st +2 -0
  76. data/lib/engine/binding_wrapper.rb +10 -0
  77. data/lib/engine/engine.rb +28 -0
  78. data/lib/engine/file_template.rb +12 -0
  79. data/lib/engine/slippers.treetop +169 -0
  80. data/lib/engine/slippers_nodes.rb +119 -0
  81. data/lib/engine/template.rb +17 -0
  82. data/lib/engine/template_group.rb +40 -0
  83. data/lib/engine/template_group_directory.rb +57 -0
  84. data/lib/ramazeTemplates/0001-Adding-slippers-as-a-new-template.patch +138 -0
  85. data/lib/ramazeTemplates/0002-Fixing-problem-with-using-other-renderers.patch +27 -0
  86. data/lib/ramazeTemplates/slippers.rb +22 -0
  87. data/lib/slippers.rb +14 -0
  88. data/spec/binding_wrapper.rb +19 -0
  89. data/spec/engine.rb +89 -0
  90. data/spec/file_template.rb +9 -0
  91. data/spec/parse_attributes.rb +98 -0
  92. data/spec/parse_renderers.rb +35 -0
  93. data/spec/parse_templates.rb +73 -0
  94. data/spec/person_template.st +1 -0
  95. data/spec/spec_helper.rb +14 -0
  96. data/spec/template_group.rb +52 -0
  97. data/spec/template_group_directory.rb +43 -0
  98. data/spec/views/index.st +1 -0
  99. data/spec/views/money.rb +2 -0
  100. data/spec/views/person/age.st +1 -0
  101. data/spec/views/person/date_renderer.rb +5 -0
  102. data/spec/views/person/name.st +1 -0
  103. metadata +218 -0
@@ -0,0 +1,5 @@
1
+ class DateRenderer
2
+ def render(date)
3
+ date.day + ' ' + date.month + ' ' + date.year
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ $first$ $last$
metadata ADDED
@@ -0,0 +1,218 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: slippers
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.10
5
+ platform: ruby
6
+ authors:
7
+ - Sarah Taraporewalla
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-29 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: schacon-git
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: treetop
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ description: A strict templating library for ruby
36
+ email: me@sarahtaraporewalla.com
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files:
42
+ - LICENSE
43
+ - README
44
+ files:
45
+ - LICENSE
46
+ - README
47
+ - Rakefile
48
+ - VERSION.yml
49
+ - examples/blog/README
50
+ - examples/blog/blog.db
51
+ - examples/blog/controller/main.rb
52
+ - examples/blog/model/entry.rb
53
+ - examples/blog/public/styles/blog.css
54
+ - examples/blog/spec/blog.rb
55
+ - examples/blog/start.rb
56
+ - examples/blog/view/edit.st
57
+ - examples/blog/view/edit.xhtml
58
+ - examples/blog/view/entry.st
59
+ - examples/blog/view/index.st
60
+ - examples/blog/view/index.xhtml
61
+ - examples/blog/view/layout.st
62
+ - examples/blog/view/layout.xhtml
63
+ - examples/blog/view/new.st
64
+ - examples/blog/view/new.xhtml
65
+ - examples/forms/Rakefile
66
+ - examples/forms/controller/init.rb
67
+ - examples/forms/controller/main.rb
68
+ - examples/forms/controller/registration.rb
69
+ - examples/forms/forms.db
70
+ - examples/forms/model/core_extensions/string_extensions.rb
71
+ - examples/forms/model/field.rb
72
+ - examples/forms/model/form.rb
73
+ - examples/forms/model/init.rb
74
+ - examples/forms/model/orm/registration.rb
75
+ - examples/forms/model/registration_form_builder.rb
76
+ - examples/forms/model/registration_repository.rb
77
+ - examples/forms/model/registration_rules/incorrect_email_format.rb
78
+ - examples/forms/model/registration_rules/number_field.rb
79
+ - examples/forms/model/registration_rules/required_field.rb
80
+ - examples/forms/model/registration_validator.rb
81
+ - examples/forms/public/css/ramaze_error.css
82
+ - examples/forms/public/dispatch.fcgi
83
+ - examples/forms/public/favicon.ico
84
+ - examples/forms/public/js/jquery.js
85
+ - examples/forms/public/ramaze.png
86
+ - examples/forms/public/web-application.js
87
+ - examples/forms/spec/form_spec.rb
88
+ - examples/forms/spec/main.rb
89
+ - examples/forms/spec/registration_controller_spec.rb
90
+ - examples/forms/spec/registration_repository_spec.rb
91
+ - examples/forms/spec/registration_validator_spec.rb
92
+ - examples/forms/spec/spec_helper.rb
93
+ - examples/forms/start.rb
94
+ - examples/forms/start.ru
95
+ - examples/forms/view/error.xhtml
96
+ - examples/forms/view/index.xhtml
97
+ - examples/forms/view/page.xhtml
98
+ - examples/forms/view/registration/index.st
99
+ - examples/main_controller.rb
100
+ - examples/start.rb
101
+ - examples/todolist.db
102
+ - examples/todolist/README
103
+ - examples/todolist/controller/main.rb
104
+ - examples/todolist/layout/page.rb
105
+ - examples/todolist/model/tasks.rb
106
+ - examples/todolist/public/favicon.ico
107
+ - examples/todolist/public/js/jquery.js
108
+ - examples/todolist/public/ramaze.png
109
+ - examples/todolist/start.rb
110
+ - examples/todolist/todolist.db
111
+ - examples/todolist/view/index.st
112
+ - examples/todolist/view/index.xhtml
113
+ - examples/todolist/view/new.st
114
+ - examples/todolist/view/new.xhtml
115
+ - examples/todolist/view/tasks.st
116
+ - examples/view/index.st
117
+ - examples/view/person/age.st
118
+ - examples/view/person/age_renderer.rb
119
+ - examples/view/person/index.st
120
+ - lib/engine/binding_wrapper.rb
121
+ - lib/engine/engine.rb
122
+ - lib/engine/file_template.rb
123
+ - lib/engine/slippers.treetop
124
+ - lib/engine/slippers_nodes.rb
125
+ - lib/engine/template.rb
126
+ - lib/engine/template_group.rb
127
+ - lib/engine/template_group_directory.rb
128
+ - lib/ramazeTemplates/0001-Adding-slippers-as-a-new-template.patch
129
+ - lib/ramazeTemplates/0002-Fixing-problem-with-using-other-renderers.patch
130
+ - lib/ramazeTemplates/slippers.rb
131
+ - lib/slippers.rb
132
+ - spec/binding_wrapper.rb
133
+ - spec/engine.rb
134
+ - spec/file_template.rb
135
+ - spec/parse_attributes.rb
136
+ - spec/parse_renderers.rb
137
+ - spec/parse_templates.rb
138
+ - spec/person_template.st
139
+ - spec/spec_helper.rb
140
+ - spec/template_group.rb
141
+ - spec/template_group_directory.rb
142
+ - spec/views/index.st
143
+ - spec/views/money.rb
144
+ - spec/views/person/age.st
145
+ - spec/views/person/date_renderer.rb
146
+ - spec/views/person/name.st
147
+ has_rdoc: true
148
+ homepage: http://github.com/starapor/slippers
149
+ licenses: []
150
+
151
+ post_install_message:
152
+ rdoc_options:
153
+ - --charset=UTF-8
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: "0"
161
+ version:
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: "0"
167
+ version:
168
+ requirements: []
169
+
170
+ rubyforge_project:
171
+ rubygems_version: 1.3.5
172
+ signing_key:
173
+ specification_version: 3
174
+ summary: A strict templating library for Ruby
175
+ test_files:
176
+ - spec/binding_wrapper.rb
177
+ - spec/engine.rb
178
+ - spec/file_template.rb
179
+ - spec/parse_attributes.rb
180
+ - spec/parse_renderers.rb
181
+ - spec/parse_templates.rb
182
+ - spec/spec_helper.rb
183
+ - spec/template_group.rb
184
+ - spec/template_group_directory.rb
185
+ - spec/views/money.rb
186
+ - spec/views/person/date_renderer.rb
187
+ - examples/blog/controller/main.rb
188
+ - examples/blog/model/entry.rb
189
+ - examples/blog/spec/blog.rb
190
+ - examples/blog/start.rb
191
+ - examples/forms/controller/init.rb
192
+ - examples/forms/controller/main.rb
193
+ - examples/forms/controller/registration.rb
194
+ - examples/forms/model/core_extensions/string_extensions.rb
195
+ - examples/forms/model/field.rb
196
+ - examples/forms/model/form.rb
197
+ - examples/forms/model/init.rb
198
+ - examples/forms/model/orm/registration.rb
199
+ - examples/forms/model/registration_form_builder.rb
200
+ - examples/forms/model/registration_repository.rb
201
+ - examples/forms/model/registration_rules/incorrect_email_format.rb
202
+ - examples/forms/model/registration_rules/number_field.rb
203
+ - examples/forms/model/registration_rules/required_field.rb
204
+ - examples/forms/model/registration_validator.rb
205
+ - examples/forms/spec/form_spec.rb
206
+ - examples/forms/spec/main.rb
207
+ - examples/forms/spec/registration_controller_spec.rb
208
+ - examples/forms/spec/registration_repository_spec.rb
209
+ - examples/forms/spec/registration_validator_spec.rb
210
+ - examples/forms/spec/spec_helper.rb
211
+ - examples/forms/start.rb
212
+ - examples/main_controller.rb
213
+ - examples/start.rb
214
+ - examples/todolist/controller/main.rb
215
+ - examples/todolist/layout/page.rb
216
+ - examples/todolist/model/tasks.rb
217
+ - examples/todolist/start.rb
218
+ - examples/view/person/age_renderer.rb