hamlit 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.rspec +2 -0
- data/.travis.yml +34 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +23 -0
- data/README.md +45 -0
- data/Rakefile +34 -0
- data/benchmarks/benchmark.rb +94 -0
- data/benchmarks/context.rb +13 -0
- data/benchmarks/view.erb +23 -0
- data/benchmarks/view.haml +18 -0
- data/benchmarks/view.rbhtml +23 -0
- data/benchmarks/view.slim +17 -0
- data/bin/hamlit +6 -0
- data/hamlit.gemspec +40 -0
- data/lib/hamlit/attribute.rb +31 -0
- data/lib/hamlit/cli.rb +89 -0
- data/lib/hamlit/compiler.rb +24 -0
- data/lib/hamlit/compilers/attributes.rb +78 -0
- data/lib/hamlit/compilers/comment.rb +13 -0
- data/lib/hamlit/compilers/doctype.rb +39 -0
- data/lib/hamlit/compilers/dynamic.rb +9 -0
- data/lib/hamlit/compilers/filter.rb +53 -0
- data/lib/hamlit/compilers/new_attribute.rb +107 -0
- data/lib/hamlit/compilers/old_attribute.rb +147 -0
- data/lib/hamlit/compilers/preserve.rb +10 -0
- data/lib/hamlit/compilers/script.rb +31 -0
- data/lib/hamlit/compilers/strip.rb +30 -0
- data/lib/hamlit/compilers/text.rb +15 -0
- data/lib/hamlit/concerns/attribute_builder.rb +21 -0
- data/lib/hamlit/concerns/balanceable.rb +59 -0
- data/lib/hamlit/concerns/deprecation.rb +20 -0
- data/lib/hamlit/concerns/error.rb +27 -0
- data/lib/hamlit/concerns/escapable.rb +17 -0
- data/lib/hamlit/concerns/included.rb +28 -0
- data/lib/hamlit/concerns/indentable.rb +53 -0
- data/lib/hamlit/concerns/line_reader.rb +60 -0
- data/lib/hamlit/concerns/registerable.rb +24 -0
- data/lib/hamlit/concerns/ripperable.rb +20 -0
- data/lib/hamlit/concerns/string_interpolation.rb +48 -0
- data/lib/hamlit/engine.rb +42 -0
- data/lib/hamlit/filters/base.rb +44 -0
- data/lib/hamlit/filters/coffee.rb +12 -0
- data/lib/hamlit/filters/css.rb +34 -0
- data/lib/hamlit/filters/erb.rb +11 -0
- data/lib/hamlit/filters/escaped.rb +19 -0
- data/lib/hamlit/filters/javascript.rb +34 -0
- data/lib/hamlit/filters/less.rb +12 -0
- data/lib/hamlit/filters/markdown.rb +11 -0
- data/lib/hamlit/filters/plain.rb +21 -0
- data/lib/hamlit/filters/preserve.rb +11 -0
- data/lib/hamlit/filters/ruby.rb +11 -0
- data/lib/hamlit/filters/sass.rb +12 -0
- data/lib/hamlit/filters/scss.rb +12 -0
- data/lib/hamlit/filters/tilt.rb +41 -0
- data/lib/hamlit/helpers.rb +38 -0
- data/lib/hamlit/html/pretty.rb +49 -0
- data/lib/hamlit/html/ugly.rb +10 -0
- data/lib/hamlit/parser.rb +123 -0
- data/lib/hamlit/parsers/attribute.rb +52 -0
- data/lib/hamlit/parsers/comment.rb +27 -0
- data/lib/hamlit/parsers/doctype.rb +18 -0
- data/lib/hamlit/parsers/filter.rb +18 -0
- data/lib/hamlit/parsers/multiline.rb +54 -0
- data/lib/hamlit/parsers/script.rb +93 -0
- data/lib/hamlit/parsers/tag.rb +71 -0
- data/lib/hamlit/parsers/text.rb +11 -0
- data/lib/hamlit/parsers/whitespace.rb +38 -0
- data/lib/hamlit/railtie.rb +21 -0
- data/lib/hamlit/template.rb +9 -0
- data/lib/hamlit/version.rb +3 -0
- data/lib/hamlit.rb +8 -0
- data/spec/Rakefile +79 -0
- data/spec/hamlit/compilers/script_spec.rb +46 -0
- data/spec/hamlit/engine/comment_spec.rb +29 -0
- data/spec/hamlit/engine/doctype_spec.rb +19 -0
- data/spec/hamlit/engine/error_spec.rb +47 -0
- data/spec/hamlit/engine/multiline_spec.rb +44 -0
- data/spec/hamlit/engine/new_attribute_spec.rb +19 -0
- data/spec/hamlit/engine/old_attributes_spec.rb +85 -0
- data/spec/hamlit/engine/preservation_spec.rb +11 -0
- data/spec/hamlit/engine/script_spec.rb +87 -0
- data/spec/hamlit/engine/silent_script_spec.rb +135 -0
- data/spec/hamlit/engine/tag_spec.rb +210 -0
- data/spec/hamlit/engine/text_spec.rb +29 -0
- data/spec/hamlit/engine_spec.rb +20 -0
- data/spec/hamlit/filters/coffee_spec.rb +41 -0
- data/spec/hamlit/filters/css_spec.rb +33 -0
- data/spec/hamlit/filters/erb_spec.rb +16 -0
- data/spec/hamlit/filters/javascript_spec.rb +82 -0
- data/spec/hamlit/filters/less_spec.rb +22 -0
- data/spec/hamlit/filters/markdown_spec.rb +28 -0
- data/spec/hamlit/filters/ruby_spec.rb +24 -0
- data/spec/hamlit/filters/sass_spec.rb +37 -0
- data/spec/hamlit/filters/scss_spec.rb +21 -0
- data/spec/hamlit/ugly_spec.rb +912 -0
- data/spec/rails/.gitignore +17 -0
- data/spec/rails/.rspec +2 -0
- data/spec/rails/Gemfile +19 -0
- data/spec/rails/Gemfile.lock +177 -0
- data/spec/rails/README.rdoc +28 -0
- data/spec/rails/Rakefile +6 -0
- data/spec/rails/app/assets/images/.keep +0 -0
- data/spec/rails/app/assets/javascripts/application.js +15 -0
- data/spec/rails/app/assets/stylesheets/application.css +15 -0
- data/spec/rails/app/controllers/application_controller.rb +8 -0
- data/spec/rails/app/controllers/concerns/.keep +0 -0
- data/spec/rails/app/controllers/users_controller.rb +20 -0
- data/spec/rails/app/helpers/application_helper.rb +2 -0
- data/spec/rails/app/mailers/.keep +0 -0
- data/spec/rails/app/models/.keep +0 -0
- data/spec/rails/app/models/concerns/.keep +0 -0
- data/spec/rails/app/views/application/index.html.haml +15 -0
- data/spec/rails/app/views/layouts/application.html.haml +12 -0
- data/spec/rails/app/views/users/capture.html.haml +5 -0
- data/spec/rails/app/views/users/capture_haml.html.haml +5 -0
- data/spec/rails/app/views/users/form.html.haml +2 -0
- data/spec/rails/app/views/users/helpers.html.haml +1 -0
- data/spec/rails/app/views/users/index.html.haml +9 -0
- data/spec/rails/app/views/users/safe_buffer.html.haml +4 -0
- data/spec/rails/bin/bundle +3 -0
- data/spec/rails/bin/rails +8 -0
- data/spec/rails/bin/rake +8 -0
- data/spec/rails/bin/setup +29 -0
- data/spec/rails/bin/spring +15 -0
- data/spec/rails/config/application.rb +34 -0
- data/spec/rails/config/boot.rb +3 -0
- data/spec/rails/config/database.yml +25 -0
- data/spec/rails/config/environment.rb +5 -0
- data/spec/rails/config/environments/development.rb +41 -0
- data/spec/rails/config/environments/production.rb +79 -0
- data/spec/rails/config/environments/test.rb +42 -0
- data/spec/rails/config/initializers/assets.rb +11 -0
- data/spec/rails/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails/config/initializers/cookies_serializer.rb +3 -0
- data/spec/rails/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/rails/config/initializers/inflections.rb +16 -0
- data/spec/rails/config/initializers/mime_types.rb +4 -0
- data/spec/rails/config/initializers/session_store.rb +3 -0
- data/spec/rails/config/initializers/wrap_parameters.rb +14 -0
- data/spec/rails/config/locales/en.yml +23 -0
- data/spec/rails/config/routes.rb +13 -0
- data/spec/rails/config/secrets.yml +22 -0
- data/spec/rails/config.ru +4 -0
- data/spec/rails/db/schema.rb +16 -0
- data/spec/rails/db/seeds.rb +7 -0
- data/spec/rails/lib/assets/.keep +0 -0
- data/spec/rails/lib/tasks/.keep +0 -0
- data/spec/rails/log/.keep +0 -0
- data/spec/rails/public/404.html +67 -0
- data/spec/rails/public/422.html +67 -0
- data/spec/rails/public/500.html +66 -0
- data/spec/rails/public/favicon.ico +0 -0
- data/spec/rails/public/robots.txt +5 -0
- data/spec/rails/spec/hamlit_spec.rb +87 -0
- data/spec/rails/spec/rails_helper.rb +56 -0
- data/spec/rails/spec/spec_helper.rb +91 -0
- data/spec/rails/vendor/assets/javascripts/.keep +0 -0
- data/spec/rails/vendor/assets/stylesheets/.keep +0 -0
- data/spec/spec_helper.rb +48 -0
- metadata +560 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'hamlit'
|
2
|
+
require 'unindent'
|
3
|
+
|
4
|
+
module HamlitSpecHelper
|
5
|
+
DEFAULT_OPTIONS = {
|
6
|
+
ugly: true,
|
7
|
+
}.freeze
|
8
|
+
|
9
|
+
def parse_string(str)
|
10
|
+
Hamlit::Parser.new.call(str)
|
11
|
+
end
|
12
|
+
|
13
|
+
def render_string(str, options = {})
|
14
|
+
options = DEFAULT_OPTIONS.merge(options)
|
15
|
+
eval Hamlit::Engine.new(options).call(str)
|
16
|
+
end
|
17
|
+
|
18
|
+
def assert_render(haml, html, options = {})
|
19
|
+
haml = haml.unindent
|
20
|
+
html = html.unindent
|
21
|
+
|
22
|
+
expect(render_string(haml, options)).to eq(html)
|
23
|
+
end
|
24
|
+
|
25
|
+
def assert_parse(haml, &block)
|
26
|
+
haml = haml.unindent
|
27
|
+
ast = block.call
|
28
|
+
|
29
|
+
expect(parse_string(haml)).to eq(ast)
|
30
|
+
end
|
31
|
+
|
32
|
+
def assert_compile(before, after)
|
33
|
+
result = described_class.new.call(before)
|
34
|
+
expect(result).to eq(after)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
RSpec.configure do |config|
|
39
|
+
config.include HamlitSpecHelper
|
40
|
+
|
41
|
+
config.expect_with :rspec do |expectations|
|
42
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
43
|
+
end
|
44
|
+
|
45
|
+
config.mock_with :rspec do |mocks|
|
46
|
+
mocks.verify_partial_doubles = true
|
47
|
+
end
|
48
|
+
end
|
metadata
ADDED
@@ -0,0 +1,560 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hamlit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Takashi Kokubun
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: temple
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: tilt
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: benchmark-ips
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: coffee-script
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: erubis
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: faml
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: haml
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: less
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: pry
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rake
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: redcarpet
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rspec
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '3'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '3'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: sass
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: slim
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: tenjin
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: therubyracer
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: unindent
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
description: Yet another haml implementation
|
280
|
+
email:
|
281
|
+
- takashikkbn@gmail.com
|
282
|
+
executables:
|
283
|
+
- hamlit
|
284
|
+
extensions: []
|
285
|
+
extra_rdoc_files: []
|
286
|
+
files:
|
287
|
+
- ".gitignore"
|
288
|
+
- ".rspec"
|
289
|
+
- ".travis.yml"
|
290
|
+
- Gemfile
|
291
|
+
- LICENSE.txt
|
292
|
+
- README.md
|
293
|
+
- Rakefile
|
294
|
+
- benchmarks/benchmark.rb
|
295
|
+
- benchmarks/context.rb
|
296
|
+
- benchmarks/view.erb
|
297
|
+
- benchmarks/view.haml
|
298
|
+
- benchmarks/view.rbhtml
|
299
|
+
- benchmarks/view.slim
|
300
|
+
- bin/hamlit
|
301
|
+
- hamlit.gemspec
|
302
|
+
- lib/hamlit.rb
|
303
|
+
- lib/hamlit/attribute.rb
|
304
|
+
- lib/hamlit/cli.rb
|
305
|
+
- lib/hamlit/compiler.rb
|
306
|
+
- lib/hamlit/compilers/attributes.rb
|
307
|
+
- lib/hamlit/compilers/comment.rb
|
308
|
+
- lib/hamlit/compilers/doctype.rb
|
309
|
+
- lib/hamlit/compilers/dynamic.rb
|
310
|
+
- lib/hamlit/compilers/filter.rb
|
311
|
+
- lib/hamlit/compilers/new_attribute.rb
|
312
|
+
- lib/hamlit/compilers/old_attribute.rb
|
313
|
+
- lib/hamlit/compilers/preserve.rb
|
314
|
+
- lib/hamlit/compilers/script.rb
|
315
|
+
- lib/hamlit/compilers/strip.rb
|
316
|
+
- lib/hamlit/compilers/text.rb
|
317
|
+
- lib/hamlit/concerns/attribute_builder.rb
|
318
|
+
- lib/hamlit/concerns/balanceable.rb
|
319
|
+
- lib/hamlit/concerns/deprecation.rb
|
320
|
+
- lib/hamlit/concerns/error.rb
|
321
|
+
- lib/hamlit/concerns/escapable.rb
|
322
|
+
- lib/hamlit/concerns/included.rb
|
323
|
+
- lib/hamlit/concerns/indentable.rb
|
324
|
+
- lib/hamlit/concerns/line_reader.rb
|
325
|
+
- lib/hamlit/concerns/registerable.rb
|
326
|
+
- lib/hamlit/concerns/ripperable.rb
|
327
|
+
- lib/hamlit/concerns/string_interpolation.rb
|
328
|
+
- lib/hamlit/engine.rb
|
329
|
+
- lib/hamlit/filters/base.rb
|
330
|
+
- lib/hamlit/filters/coffee.rb
|
331
|
+
- lib/hamlit/filters/css.rb
|
332
|
+
- lib/hamlit/filters/erb.rb
|
333
|
+
- lib/hamlit/filters/escaped.rb
|
334
|
+
- lib/hamlit/filters/javascript.rb
|
335
|
+
- lib/hamlit/filters/less.rb
|
336
|
+
- lib/hamlit/filters/markdown.rb
|
337
|
+
- lib/hamlit/filters/plain.rb
|
338
|
+
- lib/hamlit/filters/preserve.rb
|
339
|
+
- lib/hamlit/filters/ruby.rb
|
340
|
+
- lib/hamlit/filters/sass.rb
|
341
|
+
- lib/hamlit/filters/scss.rb
|
342
|
+
- lib/hamlit/filters/tilt.rb
|
343
|
+
- lib/hamlit/helpers.rb
|
344
|
+
- lib/hamlit/html/pretty.rb
|
345
|
+
- lib/hamlit/html/ugly.rb
|
346
|
+
- lib/hamlit/parser.rb
|
347
|
+
- lib/hamlit/parsers/attribute.rb
|
348
|
+
- lib/hamlit/parsers/comment.rb
|
349
|
+
- lib/hamlit/parsers/doctype.rb
|
350
|
+
- lib/hamlit/parsers/filter.rb
|
351
|
+
- lib/hamlit/parsers/multiline.rb
|
352
|
+
- lib/hamlit/parsers/script.rb
|
353
|
+
- lib/hamlit/parsers/tag.rb
|
354
|
+
- lib/hamlit/parsers/text.rb
|
355
|
+
- lib/hamlit/parsers/whitespace.rb
|
356
|
+
- lib/hamlit/railtie.rb
|
357
|
+
- lib/hamlit/template.rb
|
358
|
+
- lib/hamlit/version.rb
|
359
|
+
- spec/Rakefile
|
360
|
+
- spec/hamlit/compilers/script_spec.rb
|
361
|
+
- spec/hamlit/engine/comment_spec.rb
|
362
|
+
- spec/hamlit/engine/doctype_spec.rb
|
363
|
+
- spec/hamlit/engine/error_spec.rb
|
364
|
+
- spec/hamlit/engine/multiline_spec.rb
|
365
|
+
- spec/hamlit/engine/new_attribute_spec.rb
|
366
|
+
- spec/hamlit/engine/old_attributes_spec.rb
|
367
|
+
- spec/hamlit/engine/preservation_spec.rb
|
368
|
+
- spec/hamlit/engine/script_spec.rb
|
369
|
+
- spec/hamlit/engine/silent_script_spec.rb
|
370
|
+
- spec/hamlit/engine/tag_spec.rb
|
371
|
+
- spec/hamlit/engine/text_spec.rb
|
372
|
+
- spec/hamlit/engine_spec.rb
|
373
|
+
- spec/hamlit/filters/coffee_spec.rb
|
374
|
+
- spec/hamlit/filters/css_spec.rb
|
375
|
+
- spec/hamlit/filters/erb_spec.rb
|
376
|
+
- spec/hamlit/filters/javascript_spec.rb
|
377
|
+
- spec/hamlit/filters/less_spec.rb
|
378
|
+
- spec/hamlit/filters/markdown_spec.rb
|
379
|
+
- spec/hamlit/filters/ruby_spec.rb
|
380
|
+
- spec/hamlit/filters/sass_spec.rb
|
381
|
+
- spec/hamlit/filters/scss_spec.rb
|
382
|
+
- spec/hamlit/ugly_spec.rb
|
383
|
+
- spec/rails/.gitignore
|
384
|
+
- spec/rails/.rspec
|
385
|
+
- spec/rails/Gemfile
|
386
|
+
- spec/rails/Gemfile.lock
|
387
|
+
- spec/rails/README.rdoc
|
388
|
+
- spec/rails/Rakefile
|
389
|
+
- spec/rails/app/assets/images/.keep
|
390
|
+
- spec/rails/app/assets/javascripts/application.js
|
391
|
+
- spec/rails/app/assets/stylesheets/application.css
|
392
|
+
- spec/rails/app/controllers/application_controller.rb
|
393
|
+
- spec/rails/app/controllers/concerns/.keep
|
394
|
+
- spec/rails/app/controllers/users_controller.rb
|
395
|
+
- spec/rails/app/helpers/application_helper.rb
|
396
|
+
- spec/rails/app/mailers/.keep
|
397
|
+
- spec/rails/app/models/.keep
|
398
|
+
- spec/rails/app/models/concerns/.keep
|
399
|
+
- spec/rails/app/views/application/index.html.haml
|
400
|
+
- spec/rails/app/views/layouts/application.html.haml
|
401
|
+
- spec/rails/app/views/users/capture.html.haml
|
402
|
+
- spec/rails/app/views/users/capture_haml.html.haml
|
403
|
+
- spec/rails/app/views/users/form.html.haml
|
404
|
+
- spec/rails/app/views/users/helpers.html.haml
|
405
|
+
- spec/rails/app/views/users/index.html.haml
|
406
|
+
- spec/rails/app/views/users/safe_buffer.html.haml
|
407
|
+
- spec/rails/bin/bundle
|
408
|
+
- spec/rails/bin/rails
|
409
|
+
- spec/rails/bin/rake
|
410
|
+
- spec/rails/bin/setup
|
411
|
+
- spec/rails/bin/spring
|
412
|
+
- spec/rails/config.ru
|
413
|
+
- spec/rails/config/application.rb
|
414
|
+
- spec/rails/config/boot.rb
|
415
|
+
- spec/rails/config/database.yml
|
416
|
+
- spec/rails/config/environment.rb
|
417
|
+
- spec/rails/config/environments/development.rb
|
418
|
+
- spec/rails/config/environments/production.rb
|
419
|
+
- spec/rails/config/environments/test.rb
|
420
|
+
- spec/rails/config/initializers/assets.rb
|
421
|
+
- spec/rails/config/initializers/backtrace_silencers.rb
|
422
|
+
- spec/rails/config/initializers/cookies_serializer.rb
|
423
|
+
- spec/rails/config/initializers/filter_parameter_logging.rb
|
424
|
+
- spec/rails/config/initializers/inflections.rb
|
425
|
+
- spec/rails/config/initializers/mime_types.rb
|
426
|
+
- spec/rails/config/initializers/session_store.rb
|
427
|
+
- spec/rails/config/initializers/wrap_parameters.rb
|
428
|
+
- spec/rails/config/locales/en.yml
|
429
|
+
- spec/rails/config/routes.rb
|
430
|
+
- spec/rails/config/secrets.yml
|
431
|
+
- spec/rails/db/schema.rb
|
432
|
+
- spec/rails/db/seeds.rb
|
433
|
+
- spec/rails/lib/assets/.keep
|
434
|
+
- spec/rails/lib/tasks/.keep
|
435
|
+
- spec/rails/log/.keep
|
436
|
+
- spec/rails/public/404.html
|
437
|
+
- spec/rails/public/422.html
|
438
|
+
- spec/rails/public/500.html
|
439
|
+
- spec/rails/public/favicon.ico
|
440
|
+
- spec/rails/public/robots.txt
|
441
|
+
- spec/rails/spec/hamlit_spec.rb
|
442
|
+
- spec/rails/spec/rails_helper.rb
|
443
|
+
- spec/rails/spec/spec_helper.rb
|
444
|
+
- spec/rails/vendor/assets/javascripts/.keep
|
445
|
+
- spec/rails/vendor/assets/stylesheets/.keep
|
446
|
+
- spec/spec_helper.rb
|
447
|
+
homepage: https://github.com/k0kubun/hamlit
|
448
|
+
licenses:
|
449
|
+
- MIT
|
450
|
+
metadata: {}
|
451
|
+
post_install_message:
|
452
|
+
rdoc_options: []
|
453
|
+
require_paths:
|
454
|
+
- lib
|
455
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
456
|
+
requirements:
|
457
|
+
- - ">="
|
458
|
+
- !ruby/object:Gem::Version
|
459
|
+
version: '0'
|
460
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
461
|
+
requirements:
|
462
|
+
- - ">="
|
463
|
+
- !ruby/object:Gem::Version
|
464
|
+
version: '0'
|
465
|
+
requirements: []
|
466
|
+
rubyforge_project:
|
467
|
+
rubygems_version: 2.4.5
|
468
|
+
signing_key:
|
469
|
+
specification_version: 4
|
470
|
+
summary: Yet another haml implementation
|
471
|
+
test_files:
|
472
|
+
- spec/Rakefile
|
473
|
+
- spec/hamlit/compilers/script_spec.rb
|
474
|
+
- spec/hamlit/engine/comment_spec.rb
|
475
|
+
- spec/hamlit/engine/doctype_spec.rb
|
476
|
+
- spec/hamlit/engine/error_spec.rb
|
477
|
+
- spec/hamlit/engine/multiline_spec.rb
|
478
|
+
- spec/hamlit/engine/new_attribute_spec.rb
|
479
|
+
- spec/hamlit/engine/old_attributes_spec.rb
|
480
|
+
- spec/hamlit/engine/preservation_spec.rb
|
481
|
+
- spec/hamlit/engine/script_spec.rb
|
482
|
+
- spec/hamlit/engine/silent_script_spec.rb
|
483
|
+
- spec/hamlit/engine/tag_spec.rb
|
484
|
+
- spec/hamlit/engine/text_spec.rb
|
485
|
+
- spec/hamlit/engine_spec.rb
|
486
|
+
- spec/hamlit/filters/coffee_spec.rb
|
487
|
+
- spec/hamlit/filters/css_spec.rb
|
488
|
+
- spec/hamlit/filters/erb_spec.rb
|
489
|
+
- spec/hamlit/filters/javascript_spec.rb
|
490
|
+
- spec/hamlit/filters/less_spec.rb
|
491
|
+
- spec/hamlit/filters/markdown_spec.rb
|
492
|
+
- spec/hamlit/filters/ruby_spec.rb
|
493
|
+
- spec/hamlit/filters/sass_spec.rb
|
494
|
+
- spec/hamlit/filters/scss_spec.rb
|
495
|
+
- spec/hamlit/ugly_spec.rb
|
496
|
+
- spec/rails/.gitignore
|
497
|
+
- spec/rails/.rspec
|
498
|
+
- spec/rails/Gemfile
|
499
|
+
- spec/rails/Gemfile.lock
|
500
|
+
- spec/rails/README.rdoc
|
501
|
+
- spec/rails/Rakefile
|
502
|
+
- spec/rails/app/assets/images/.keep
|
503
|
+
- spec/rails/app/assets/javascripts/application.js
|
504
|
+
- spec/rails/app/assets/stylesheets/application.css
|
505
|
+
- spec/rails/app/controllers/application_controller.rb
|
506
|
+
- spec/rails/app/controllers/concerns/.keep
|
507
|
+
- spec/rails/app/controllers/users_controller.rb
|
508
|
+
- spec/rails/app/helpers/application_helper.rb
|
509
|
+
- spec/rails/app/mailers/.keep
|
510
|
+
- spec/rails/app/models/.keep
|
511
|
+
- spec/rails/app/models/concerns/.keep
|
512
|
+
- spec/rails/app/views/application/index.html.haml
|
513
|
+
- spec/rails/app/views/layouts/application.html.haml
|
514
|
+
- spec/rails/app/views/users/capture.html.haml
|
515
|
+
- spec/rails/app/views/users/capture_haml.html.haml
|
516
|
+
- spec/rails/app/views/users/form.html.haml
|
517
|
+
- spec/rails/app/views/users/helpers.html.haml
|
518
|
+
- spec/rails/app/views/users/index.html.haml
|
519
|
+
- spec/rails/app/views/users/safe_buffer.html.haml
|
520
|
+
- spec/rails/bin/bundle
|
521
|
+
- spec/rails/bin/rails
|
522
|
+
- spec/rails/bin/rake
|
523
|
+
- spec/rails/bin/setup
|
524
|
+
- spec/rails/bin/spring
|
525
|
+
- spec/rails/config.ru
|
526
|
+
- spec/rails/config/application.rb
|
527
|
+
- spec/rails/config/boot.rb
|
528
|
+
- spec/rails/config/database.yml
|
529
|
+
- spec/rails/config/environment.rb
|
530
|
+
- spec/rails/config/environments/development.rb
|
531
|
+
- spec/rails/config/environments/production.rb
|
532
|
+
- spec/rails/config/environments/test.rb
|
533
|
+
- spec/rails/config/initializers/assets.rb
|
534
|
+
- spec/rails/config/initializers/backtrace_silencers.rb
|
535
|
+
- spec/rails/config/initializers/cookies_serializer.rb
|
536
|
+
- spec/rails/config/initializers/filter_parameter_logging.rb
|
537
|
+
- spec/rails/config/initializers/inflections.rb
|
538
|
+
- spec/rails/config/initializers/mime_types.rb
|
539
|
+
- spec/rails/config/initializers/session_store.rb
|
540
|
+
- spec/rails/config/initializers/wrap_parameters.rb
|
541
|
+
- spec/rails/config/locales/en.yml
|
542
|
+
- spec/rails/config/routes.rb
|
543
|
+
- spec/rails/config/secrets.yml
|
544
|
+
- spec/rails/db/schema.rb
|
545
|
+
- spec/rails/db/seeds.rb
|
546
|
+
- spec/rails/lib/assets/.keep
|
547
|
+
- spec/rails/lib/tasks/.keep
|
548
|
+
- spec/rails/log/.keep
|
549
|
+
- spec/rails/public/404.html
|
550
|
+
- spec/rails/public/422.html
|
551
|
+
- spec/rails/public/500.html
|
552
|
+
- spec/rails/public/favicon.ico
|
553
|
+
- spec/rails/public/robots.txt
|
554
|
+
- spec/rails/spec/hamlit_spec.rb
|
555
|
+
- spec/rails/spec/rails_helper.rb
|
556
|
+
- spec/rails/spec/spec_helper.rb
|
557
|
+
- spec/rails/vendor/assets/javascripts/.keep
|
558
|
+
- spec/rails/vendor/assets/stylesheets/.keep
|
559
|
+
- spec/spec_helper.rb
|
560
|
+
has_rdoc:
|