hamlit 2.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.travis.yml +47 -0
- data/CHANGELOG.md +702 -0
- data/Gemfile +30 -0
- data/LICENSE.txt +44 -0
- data/README.md +150 -0
- data/REFERENCE.md +272 -0
- data/Rakefile +117 -0
- data/benchmark/boolean_attribute.haml +6 -0
- data/benchmark/class_attribute.haml +5 -0
- data/benchmark/common_attribute.haml +3 -0
- data/benchmark/data_attribute.haml +4 -0
- data/benchmark/dynamic_attributes/boolean_attribute.haml +4 -0
- data/benchmark/dynamic_attributes/class_attribute.haml +4 -0
- data/benchmark/dynamic_attributes/common_attribute.haml +2 -0
- data/benchmark/dynamic_attributes/data_attribute.haml +2 -0
- data/benchmark/dynamic_attributes/id_attribute.haml +2 -0
- data/benchmark/dynamic_boolean_attribute.haml +4 -0
- data/benchmark/dynamic_merger/benchmark.rb +25 -0
- data/benchmark/dynamic_merger/hello.haml +50 -0
- data/benchmark/dynamic_merger/hello.string +50 -0
- data/benchmark/etc/attribute_builder.haml +5 -0
- data/benchmark/etc/real_sample.haml +888 -0
- data/benchmark/etc/real_sample.rb +11 -0
- data/benchmark/etc/static_analyzer.haml +1 -0
- data/benchmark/etc/string_interpolation.haml +2 -0
- data/benchmark/etc/tags.haml +3 -0
- data/benchmark/etc/tags_loop.haml +2 -0
- data/benchmark/ext/build_data.rb +17 -0
- data/benchmark/ext/build_id.rb +13 -0
- data/benchmark/id_attribute.haml +3 -0
- data/benchmark/plain.haml +4 -0
- data/benchmark/script.haml +4 -0
- data/benchmark/slim/LICENSE +21 -0
- data/benchmark/slim/context.rb +11 -0
- data/benchmark/slim/run-benchmarks.rb +94 -0
- data/benchmark/slim/view.erb +23 -0
- data/benchmark/slim/view.haml +18 -0
- data/benchmark/slim/view.slim +17 -0
- data/benchmark/utils/benchmark_ips_extension.rb +43 -0
- data/bin/bench +77 -0
- data/bin/console +11 -0
- data/bin/ruby +3 -0
- data/bin/setup +7 -0
- data/bin/stackprof +27 -0
- data/bin/test +24 -0
- data/exe/hamlit +6 -0
- data/ext/hamlit/extconf.rb +10 -0
- data/ext/hamlit/hamlit.c +555 -0
- data/ext/hamlit/hescape.c +108 -0
- data/ext/hamlit/hescape.h +20 -0
- data/hamlit.gemspec +47 -0
- data/lib/hamlit.rb +11 -0
- data/lib/hamlit/attribute_builder.rb +175 -0
- data/lib/hamlit/attribute_compiler.rb +125 -0
- data/lib/hamlit/attribute_parser.rb +110 -0
- data/lib/hamlit/cli.rb +130 -0
- data/lib/hamlit/compiler.rb +97 -0
- data/lib/hamlit/compiler/children_compiler.rb +112 -0
- data/lib/hamlit/compiler/comment_compiler.rb +36 -0
- data/lib/hamlit/compiler/doctype_compiler.rb +46 -0
- data/lib/hamlit/compiler/script_compiler.rb +106 -0
- data/lib/hamlit/compiler/silent_script_compiler.rb +24 -0
- data/lib/hamlit/compiler/tag_compiler.rb +76 -0
- data/lib/hamlit/dynamic_merger.rb +67 -0
- data/lib/hamlit/engine.rb +38 -0
- data/lib/hamlit/error.rb +15 -0
- data/lib/hamlit/escapable.rb +13 -0
- data/lib/hamlit/filters.rb +75 -0
- data/lib/hamlit/filters/base.rb +12 -0
- data/lib/hamlit/filters/cdata.rb +20 -0
- data/lib/hamlit/filters/coffee.rb +17 -0
- data/lib/hamlit/filters/css.rb +33 -0
- data/lib/hamlit/filters/erb.rb +10 -0
- data/lib/hamlit/filters/escaped.rb +22 -0
- data/lib/hamlit/filters/javascript.rb +33 -0
- data/lib/hamlit/filters/less.rb +20 -0
- data/lib/hamlit/filters/markdown.rb +10 -0
- data/lib/hamlit/filters/plain.rb +29 -0
- data/lib/hamlit/filters/preserve.rb +22 -0
- data/lib/hamlit/filters/ruby.rb +10 -0
- data/lib/hamlit/filters/sass.rb +15 -0
- data/lib/hamlit/filters/scss.rb +15 -0
- data/lib/hamlit/filters/text_base.rb +25 -0
- data/lib/hamlit/filters/tilt_base.rb +49 -0
- data/lib/hamlit/force_escapable.rb +29 -0
- data/lib/hamlit/helpers.rb +15 -0
- data/lib/hamlit/html.rb +14 -0
- data/lib/hamlit/identity.rb +13 -0
- data/lib/hamlit/object_ref.rb +30 -0
- data/lib/hamlit/parser.rb +49 -0
- data/lib/hamlit/parser/MIT-LICENSE +20 -0
- data/lib/hamlit/parser/README.md +30 -0
- data/lib/hamlit/parser/haml_buffer.rb +348 -0
- data/lib/hamlit/parser/haml_compiler.rb +553 -0
- data/lib/hamlit/parser/haml_error.rb +61 -0
- data/lib/hamlit/parser/haml_helpers.rb +727 -0
- data/lib/hamlit/parser/haml_options.rb +286 -0
- data/lib/hamlit/parser/haml_parser.rb +800 -0
- data/lib/hamlit/parser/haml_util.rb +288 -0
- data/lib/hamlit/parser/haml_xss_mods.rb +109 -0
- data/lib/hamlit/rails_helpers.rb +51 -0
- data/lib/hamlit/rails_template.rb +59 -0
- data/lib/hamlit/railtie.rb +10 -0
- data/lib/hamlit/ruby_expression.rb +32 -0
- data/lib/hamlit/string_splitter.rb +19 -0
- data/lib/hamlit/template.rb +28 -0
- data/lib/hamlit/utils.rb +20 -0
- data/lib/hamlit/version.rb +4 -0
- metadata +392 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'ripper'
|
3
|
+
|
4
|
+
module Hamlit
|
5
|
+
class RubyExpression < Ripper
|
6
|
+
class ParseError < StandardError; end
|
7
|
+
|
8
|
+
def self.syntax_error?(code)
|
9
|
+
self.new(code).parse
|
10
|
+
false
|
11
|
+
rescue ParseError
|
12
|
+
true
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.string_literal?(code)
|
16
|
+
return false if syntax_error?(code)
|
17
|
+
|
18
|
+
type, instructions = Ripper.sexp(code)
|
19
|
+
return false if type != :program
|
20
|
+
return false if instructions.size > 1
|
21
|
+
|
22
|
+
type, _ = instructions.first
|
23
|
+
type == :string_literal
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def on_parse_error(*)
|
29
|
+
raise ParseError
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'ripper'
|
2
|
+
require 'hamlit/ruby_expression'
|
3
|
+
|
4
|
+
module Hamlit
|
5
|
+
module StringSplitter
|
6
|
+
# `code` param must be valid string literal
|
7
|
+
def self.compile(code)
|
8
|
+
unless Ripper.respond_to?(:lex) # truffleruby doesn't have Ripper.lex
|
9
|
+
return [[:dynamic, code]]
|
10
|
+
end
|
11
|
+
|
12
|
+
begin
|
13
|
+
Temple::Filters::StringSplitter.compile(code)
|
14
|
+
rescue Temple::FilterError => e
|
15
|
+
raise Hamlit::InternalError.new(e.message)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: false
|
2
|
+
require 'temple'
|
3
|
+
require 'hamlit/engine'
|
4
|
+
require 'hamlit/helpers'
|
5
|
+
|
6
|
+
# Load tilt/haml first to override if available
|
7
|
+
begin
|
8
|
+
require 'haml'
|
9
|
+
rescue LoadError
|
10
|
+
else
|
11
|
+
require 'tilt/haml'
|
12
|
+
end
|
13
|
+
|
14
|
+
module Hamlit
|
15
|
+
Template = Temple::Templates::Tilt.create(
|
16
|
+
Hamlit::Engine,
|
17
|
+
register_as: :haml,
|
18
|
+
)
|
19
|
+
|
20
|
+
module TemplateExtension
|
21
|
+
# Activate Hamlit::Helpers for tilt templates.
|
22
|
+
# https://github.com/judofyr/temple/blob/v0.7.6/lib/temple/mixins/template.rb#L7-L11
|
23
|
+
def compile(*)
|
24
|
+
"extend Hamlit::Helpers; #{super}"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
Template.send(:extend, TemplateExtension)
|
28
|
+
end
|
data/lib/hamlit/utils.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Hamlit
|
3
|
+
module Utils
|
4
|
+
# Java extension is not implemented for JRuby yet.
|
5
|
+
# TruffleRuby does not implement `rb_ary_sort_bang`, etc.
|
6
|
+
if /java/ === RUBY_PLATFORM || RUBY_ENGINE == 'truffleruby'
|
7
|
+
require 'cgi/escape'
|
8
|
+
|
9
|
+
def self.escape_html(html)
|
10
|
+
CGI.escapeHTML(html.to_s)
|
11
|
+
end
|
12
|
+
else
|
13
|
+
require 'hamlit/hamlit' # Hamlit::Utils.escape_html
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.escape_html_safe(html)
|
17
|
+
html.html_safe? ? html : escape_html(html)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,392 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hamlit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.10.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Takashi Kokubun
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-09-15 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.8.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.2
|
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_driver
|
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: erubi
|
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: haml
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '5'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '5'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: less
|
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: minitest-reporters
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '1.1'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '1.1'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rails
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 4.0.0
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 4.0.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: rake-compiler
|
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: sass
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: slim
|
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: string_template
|
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: unindent
|
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
|
+
description: High Performance Haml Implementation
|
252
|
+
email:
|
253
|
+
- takashikkbn@gmail.com
|
254
|
+
executables:
|
255
|
+
- hamlit
|
256
|
+
extensions:
|
257
|
+
- ext/hamlit/extconf.rb
|
258
|
+
extra_rdoc_files: []
|
259
|
+
files:
|
260
|
+
- ".gitignore"
|
261
|
+
- ".travis.yml"
|
262
|
+
- CHANGELOG.md
|
263
|
+
- Gemfile
|
264
|
+
- LICENSE.txt
|
265
|
+
- README.md
|
266
|
+
- REFERENCE.md
|
267
|
+
- Rakefile
|
268
|
+
- benchmark/boolean_attribute.haml
|
269
|
+
- benchmark/class_attribute.haml
|
270
|
+
- benchmark/common_attribute.haml
|
271
|
+
- benchmark/data_attribute.haml
|
272
|
+
- benchmark/dynamic_attributes/boolean_attribute.haml
|
273
|
+
- benchmark/dynamic_attributes/class_attribute.haml
|
274
|
+
- benchmark/dynamic_attributes/common_attribute.haml
|
275
|
+
- benchmark/dynamic_attributes/data_attribute.haml
|
276
|
+
- benchmark/dynamic_attributes/id_attribute.haml
|
277
|
+
- benchmark/dynamic_boolean_attribute.haml
|
278
|
+
- benchmark/dynamic_merger/benchmark.rb
|
279
|
+
- benchmark/dynamic_merger/hello.haml
|
280
|
+
- benchmark/dynamic_merger/hello.string
|
281
|
+
- benchmark/etc/attribute_builder.haml
|
282
|
+
- benchmark/etc/real_sample.haml
|
283
|
+
- benchmark/etc/real_sample.rb
|
284
|
+
- benchmark/etc/static_analyzer.haml
|
285
|
+
- benchmark/etc/string_interpolation.haml
|
286
|
+
- benchmark/etc/tags.haml
|
287
|
+
- benchmark/etc/tags_loop.haml
|
288
|
+
- benchmark/ext/build_data.rb
|
289
|
+
- benchmark/ext/build_id.rb
|
290
|
+
- benchmark/id_attribute.haml
|
291
|
+
- benchmark/plain.haml
|
292
|
+
- benchmark/script.haml
|
293
|
+
- benchmark/slim/LICENSE
|
294
|
+
- benchmark/slim/context.rb
|
295
|
+
- benchmark/slim/run-benchmarks.rb
|
296
|
+
- benchmark/slim/view.erb
|
297
|
+
- benchmark/slim/view.haml
|
298
|
+
- benchmark/slim/view.slim
|
299
|
+
- benchmark/utils/benchmark_ips_extension.rb
|
300
|
+
- bin/bench
|
301
|
+
- bin/console
|
302
|
+
- bin/ruby
|
303
|
+
- bin/setup
|
304
|
+
- bin/stackprof
|
305
|
+
- bin/test
|
306
|
+
- exe/hamlit
|
307
|
+
- ext/hamlit/extconf.rb
|
308
|
+
- ext/hamlit/hamlit.c
|
309
|
+
- ext/hamlit/hescape.c
|
310
|
+
- ext/hamlit/hescape.h
|
311
|
+
- hamlit.gemspec
|
312
|
+
- lib/hamlit.rb
|
313
|
+
- lib/hamlit/attribute_builder.rb
|
314
|
+
- lib/hamlit/attribute_compiler.rb
|
315
|
+
- lib/hamlit/attribute_parser.rb
|
316
|
+
- lib/hamlit/cli.rb
|
317
|
+
- lib/hamlit/compiler.rb
|
318
|
+
- lib/hamlit/compiler/children_compiler.rb
|
319
|
+
- lib/hamlit/compiler/comment_compiler.rb
|
320
|
+
- lib/hamlit/compiler/doctype_compiler.rb
|
321
|
+
- lib/hamlit/compiler/script_compiler.rb
|
322
|
+
- lib/hamlit/compiler/silent_script_compiler.rb
|
323
|
+
- lib/hamlit/compiler/tag_compiler.rb
|
324
|
+
- lib/hamlit/dynamic_merger.rb
|
325
|
+
- lib/hamlit/engine.rb
|
326
|
+
- lib/hamlit/error.rb
|
327
|
+
- lib/hamlit/escapable.rb
|
328
|
+
- lib/hamlit/filters.rb
|
329
|
+
- lib/hamlit/filters/base.rb
|
330
|
+
- lib/hamlit/filters/cdata.rb
|
331
|
+
- lib/hamlit/filters/coffee.rb
|
332
|
+
- lib/hamlit/filters/css.rb
|
333
|
+
- lib/hamlit/filters/erb.rb
|
334
|
+
- lib/hamlit/filters/escaped.rb
|
335
|
+
- lib/hamlit/filters/javascript.rb
|
336
|
+
- lib/hamlit/filters/less.rb
|
337
|
+
- lib/hamlit/filters/markdown.rb
|
338
|
+
- lib/hamlit/filters/plain.rb
|
339
|
+
- lib/hamlit/filters/preserve.rb
|
340
|
+
- lib/hamlit/filters/ruby.rb
|
341
|
+
- lib/hamlit/filters/sass.rb
|
342
|
+
- lib/hamlit/filters/scss.rb
|
343
|
+
- lib/hamlit/filters/text_base.rb
|
344
|
+
- lib/hamlit/filters/tilt_base.rb
|
345
|
+
- lib/hamlit/force_escapable.rb
|
346
|
+
- lib/hamlit/helpers.rb
|
347
|
+
- lib/hamlit/html.rb
|
348
|
+
- lib/hamlit/identity.rb
|
349
|
+
- lib/hamlit/object_ref.rb
|
350
|
+
- lib/hamlit/parser.rb
|
351
|
+
- lib/hamlit/parser/MIT-LICENSE
|
352
|
+
- lib/hamlit/parser/README.md
|
353
|
+
- lib/hamlit/parser/haml_buffer.rb
|
354
|
+
- lib/hamlit/parser/haml_compiler.rb
|
355
|
+
- lib/hamlit/parser/haml_error.rb
|
356
|
+
- lib/hamlit/parser/haml_helpers.rb
|
357
|
+
- lib/hamlit/parser/haml_options.rb
|
358
|
+
- lib/hamlit/parser/haml_parser.rb
|
359
|
+
- lib/hamlit/parser/haml_util.rb
|
360
|
+
- lib/hamlit/parser/haml_xss_mods.rb
|
361
|
+
- lib/hamlit/rails_helpers.rb
|
362
|
+
- lib/hamlit/rails_template.rb
|
363
|
+
- lib/hamlit/railtie.rb
|
364
|
+
- lib/hamlit/ruby_expression.rb
|
365
|
+
- lib/hamlit/string_splitter.rb
|
366
|
+
- lib/hamlit/template.rb
|
367
|
+
- lib/hamlit/utils.rb
|
368
|
+
- lib/hamlit/version.rb
|
369
|
+
homepage: https://github.com/k0kubun/hamlit
|
370
|
+
licenses:
|
371
|
+
- MIT
|
372
|
+
metadata: {}
|
373
|
+
post_install_message:
|
374
|
+
rdoc_options: []
|
375
|
+
require_paths:
|
376
|
+
- lib
|
377
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
378
|
+
requirements:
|
379
|
+
- - ">="
|
380
|
+
- !ruby/object:Gem::Version
|
381
|
+
version: 2.1.0
|
382
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
383
|
+
requirements:
|
384
|
+
- - ">="
|
385
|
+
- !ruby/object:Gem::Version
|
386
|
+
version: '0'
|
387
|
+
requirements: []
|
388
|
+
rubygems_version: 3.0.3
|
389
|
+
signing_key:
|
390
|
+
specification_version: 4
|
391
|
+
summary: High Performance Haml Implementation
|
392
|
+
test_files: []
|