hamlit 2.9.1-java
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/.travis.yml +45 -0
- data/CHANGELOG.md +666 -0
- data/Gemfile +28 -0
- data/LICENSE.txt +44 -0
- data/README.md +146 -0
- data/REFERENCE.md +266 -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/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 +553 -0
- data/ext/hamlit/hescape.c +108 -0
- data/ext/hamlit/hescape.h +20 -0
- data/hamlit.gemspec +45 -0
- data/lib/hamlit.rb +11 -0
- data/lib/hamlit/attribute_builder.rb +173 -0
- data/lib/hamlit/attribute_compiler.rb +123 -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 +101 -0
- data/lib/hamlit/compiler/silent_script_compiler.rb +24 -0
- data/lib/hamlit/compiler/tag_compiler.rb +74 -0
- data/lib/hamlit/engine.rb +37 -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 +58 -0
- data/lib/hamlit/railtie.rb +10 -0
- data/lib/hamlit/ruby_expression.rb +32 -0
- data/lib/hamlit/string_splitter.rb +88 -0
- data/lib/hamlit/template.rb +28 -0
- data/lib/hamlit/utils.rb +18 -0
- data/lib/hamlit/version.rb +4 -0
- metadata +360 -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,88 @@
|
|
1
|
+
require 'ripper'
|
2
|
+
require 'hamlit/ruby_expression'
|
3
|
+
|
4
|
+
module Hamlit
|
5
|
+
class StringSplitter < Temple::Filter
|
6
|
+
class << self
|
7
|
+
# `code` param must be valid string literal
|
8
|
+
def compile(code)
|
9
|
+
[].tap do |exps|
|
10
|
+
tokens = Ripper.lex(code.strip)
|
11
|
+
tokens.pop while tokens.last && %i[on_comment on_sp].include?(tokens.last[1])
|
12
|
+
|
13
|
+
if tokens.size < 2
|
14
|
+
raise Hamlit::InternalError.new("Expected token size >= 2 but got: #{tokens.size}")
|
15
|
+
end
|
16
|
+
compile_tokens!(exps, tokens)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def strip_quotes!(tokens)
|
23
|
+
_, type, beg_str = tokens.shift
|
24
|
+
if type != :on_tstring_beg
|
25
|
+
raise Hamlit::InternalError.new("Expected :on_tstring_beg but got: #{type}")
|
26
|
+
end
|
27
|
+
|
28
|
+
_, type, end_str = tokens.pop
|
29
|
+
if type != :on_tstring_end
|
30
|
+
raise Hamlit::InternalError.new("Expected :on_tstring_end but got: #{type}")
|
31
|
+
end
|
32
|
+
|
33
|
+
[beg_str, end_str]
|
34
|
+
end
|
35
|
+
|
36
|
+
def compile_tokens!(exps, tokens)
|
37
|
+
beg_str, end_str = strip_quotes!(tokens)
|
38
|
+
|
39
|
+
until tokens.empty?
|
40
|
+
_, type, str = tokens.shift
|
41
|
+
|
42
|
+
case type
|
43
|
+
when :on_tstring_content
|
44
|
+
exps << [:static, eval("#{beg_str}#{str}#{end_str}")]
|
45
|
+
when :on_embexpr_beg
|
46
|
+
embedded = shift_balanced_embexpr(tokens)
|
47
|
+
exps << [:dynamic, embedded] unless embedded.empty?
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def shift_balanced_embexpr(tokens)
|
53
|
+
String.new.tap do |embedded|
|
54
|
+
embexpr_open = 1
|
55
|
+
|
56
|
+
until tokens.empty?
|
57
|
+
_, type, str = tokens.shift
|
58
|
+
case type
|
59
|
+
when :on_embexpr_beg
|
60
|
+
embexpr_open += 1
|
61
|
+
when :on_embexpr_end
|
62
|
+
embexpr_open -= 1
|
63
|
+
break if embexpr_open == 0
|
64
|
+
end
|
65
|
+
|
66
|
+
embedded << str
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
def on_dynamic(code)
|
73
|
+
return [:dynamic, code] unless RubyExpression.string_literal?(code)
|
74
|
+
return [:dynamic, code] if code.include?("\n")
|
75
|
+
|
76
|
+
temple = [:multi]
|
77
|
+
StringSplitter.compile(code).each do |type, content|
|
78
|
+
case type
|
79
|
+
when :static
|
80
|
+
temple << [:static, content]
|
81
|
+
when :dynamic
|
82
|
+
temple << on_dynamic(content)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
temple
|
86
|
+
end
|
87
|
+
end
|
88
|
+
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,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Hamlit
|
3
|
+
module Utils
|
4
|
+
if /java/ === RUBY_PLATFORM # JRuby
|
5
|
+
require 'cgi/escape'
|
6
|
+
|
7
|
+
def self.escape_html(html)
|
8
|
+
CGI.escapeHTML(html.to_s)
|
9
|
+
end
|
10
|
+
else
|
11
|
+
require 'hamlit/hamlit' # Hamlit::Utils.escape_html
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.escape_html_safe(html)
|
15
|
+
html.html_safe? ? html : escape_html(html)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,360 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hamlit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.9.1
|
5
|
+
platform: java
|
6
|
+
authors:
|
7
|
+
- Takashi Kokubun
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-11-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: 0.8.0
|
19
|
+
name: temple
|
20
|
+
prerelease: false
|
21
|
+
type: :runtime
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
name: thor
|
34
|
+
prerelease: false
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
name: tilt
|
48
|
+
prerelease: false
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
name: bundler
|
62
|
+
prerelease: false
|
63
|
+
type: :development
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
name: coffee-script
|
76
|
+
prerelease: false
|
77
|
+
type: :development
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
name: erubi
|
90
|
+
prerelease: false
|
91
|
+
type: :development
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
name: haml
|
104
|
+
prerelease: false
|
105
|
+
type: :development
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
name: less
|
118
|
+
prerelease: false
|
119
|
+
type: :development
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '1.1'
|
131
|
+
name: minitest-reporters
|
132
|
+
prerelease: false
|
133
|
+
type: :development
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.1'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 4.0.0
|
145
|
+
name: rails
|
146
|
+
prerelease: false
|
147
|
+
type: :development
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 4.0.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
requirement: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '10.0'
|
159
|
+
name: rake
|
160
|
+
prerelease: false
|
161
|
+
type: :development
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '10.0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
requirement: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
name: rake-compiler
|
174
|
+
prerelease: false
|
175
|
+
type: :development
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
name: sass
|
188
|
+
prerelease: false
|
189
|
+
type: :development
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
requirement: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0'
|
201
|
+
name: slim
|
202
|
+
prerelease: false
|
203
|
+
type: :development
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
requirement: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '0'
|
215
|
+
name: unindent
|
216
|
+
prerelease: false
|
217
|
+
type: :development
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
description: High Performance Haml Implementation
|
224
|
+
email:
|
225
|
+
- takashikkbn@gmail.com
|
226
|
+
executables:
|
227
|
+
- hamlit
|
228
|
+
extensions: []
|
229
|
+
extra_rdoc_files: []
|
230
|
+
files:
|
231
|
+
- ".gitignore"
|
232
|
+
- ".travis.yml"
|
233
|
+
- CHANGELOG.md
|
234
|
+
- Gemfile
|
235
|
+
- LICENSE.txt
|
236
|
+
- README.md
|
237
|
+
- REFERENCE.md
|
238
|
+
- Rakefile
|
239
|
+
- benchmark/boolean_attribute.haml
|
240
|
+
- benchmark/class_attribute.haml
|
241
|
+
- benchmark/common_attribute.haml
|
242
|
+
- benchmark/data_attribute.haml
|
243
|
+
- benchmark/dynamic_attributes/boolean_attribute.haml
|
244
|
+
- benchmark/dynamic_attributes/class_attribute.haml
|
245
|
+
- benchmark/dynamic_attributes/common_attribute.haml
|
246
|
+
- benchmark/dynamic_attributes/data_attribute.haml
|
247
|
+
- benchmark/dynamic_attributes/id_attribute.haml
|
248
|
+
- benchmark/dynamic_boolean_attribute.haml
|
249
|
+
- benchmark/etc/attribute_builder.haml
|
250
|
+
- benchmark/etc/real_sample.haml
|
251
|
+
- benchmark/etc/real_sample.rb
|
252
|
+
- benchmark/etc/static_analyzer.haml
|
253
|
+
- benchmark/etc/string_interpolation.haml
|
254
|
+
- benchmark/etc/tags.haml
|
255
|
+
- benchmark/etc/tags_loop.haml
|
256
|
+
- benchmark/ext/build_data.rb
|
257
|
+
- benchmark/ext/build_id.rb
|
258
|
+
- benchmark/id_attribute.haml
|
259
|
+
- benchmark/plain.haml
|
260
|
+
- benchmark/script.haml
|
261
|
+
- benchmark/slim/LICENSE
|
262
|
+
- benchmark/slim/context.rb
|
263
|
+
- benchmark/slim/run-benchmarks.rb
|
264
|
+
- benchmark/slim/view.erb
|
265
|
+
- benchmark/slim/view.haml
|
266
|
+
- benchmark/slim/view.slim
|
267
|
+
- benchmark/utils/benchmark_ips_extension.rb
|
268
|
+
- bin/bench
|
269
|
+
- bin/console
|
270
|
+
- bin/ruby
|
271
|
+
- bin/setup
|
272
|
+
- bin/stackprof
|
273
|
+
- bin/test
|
274
|
+
- exe/hamlit
|
275
|
+
- ext/hamlit/extconf.rb
|
276
|
+
- ext/hamlit/hamlit.c
|
277
|
+
- ext/hamlit/hescape.c
|
278
|
+
- ext/hamlit/hescape.h
|
279
|
+
- hamlit.gemspec
|
280
|
+
- lib/hamlit.rb
|
281
|
+
- lib/hamlit/attribute_builder.rb
|
282
|
+
- lib/hamlit/attribute_compiler.rb
|
283
|
+
- lib/hamlit/attribute_parser.rb
|
284
|
+
- lib/hamlit/cli.rb
|
285
|
+
- lib/hamlit/compiler.rb
|
286
|
+
- lib/hamlit/compiler/children_compiler.rb
|
287
|
+
- lib/hamlit/compiler/comment_compiler.rb
|
288
|
+
- lib/hamlit/compiler/doctype_compiler.rb
|
289
|
+
- lib/hamlit/compiler/script_compiler.rb
|
290
|
+
- lib/hamlit/compiler/silent_script_compiler.rb
|
291
|
+
- lib/hamlit/compiler/tag_compiler.rb
|
292
|
+
- lib/hamlit/engine.rb
|
293
|
+
- lib/hamlit/error.rb
|
294
|
+
- lib/hamlit/escapable.rb
|
295
|
+
- lib/hamlit/filters.rb
|
296
|
+
- lib/hamlit/filters/base.rb
|
297
|
+
- lib/hamlit/filters/cdata.rb
|
298
|
+
- lib/hamlit/filters/coffee.rb
|
299
|
+
- lib/hamlit/filters/css.rb
|
300
|
+
- lib/hamlit/filters/erb.rb
|
301
|
+
- lib/hamlit/filters/escaped.rb
|
302
|
+
- lib/hamlit/filters/javascript.rb
|
303
|
+
- lib/hamlit/filters/less.rb
|
304
|
+
- lib/hamlit/filters/markdown.rb
|
305
|
+
- lib/hamlit/filters/plain.rb
|
306
|
+
- lib/hamlit/filters/preserve.rb
|
307
|
+
- lib/hamlit/filters/ruby.rb
|
308
|
+
- lib/hamlit/filters/sass.rb
|
309
|
+
- lib/hamlit/filters/scss.rb
|
310
|
+
- lib/hamlit/filters/text_base.rb
|
311
|
+
- lib/hamlit/filters/tilt_base.rb
|
312
|
+
- lib/hamlit/force_escapable.rb
|
313
|
+
- lib/hamlit/helpers.rb
|
314
|
+
- lib/hamlit/html.rb
|
315
|
+
- lib/hamlit/identity.rb
|
316
|
+
- lib/hamlit/object_ref.rb
|
317
|
+
- lib/hamlit/parser.rb
|
318
|
+
- lib/hamlit/parser/MIT-LICENSE
|
319
|
+
- lib/hamlit/parser/README.md
|
320
|
+
- lib/hamlit/parser/haml_buffer.rb
|
321
|
+
- lib/hamlit/parser/haml_compiler.rb
|
322
|
+
- lib/hamlit/parser/haml_error.rb
|
323
|
+
- lib/hamlit/parser/haml_helpers.rb
|
324
|
+
- lib/hamlit/parser/haml_options.rb
|
325
|
+
- lib/hamlit/parser/haml_parser.rb
|
326
|
+
- lib/hamlit/parser/haml_util.rb
|
327
|
+
- lib/hamlit/parser/haml_xss_mods.rb
|
328
|
+
- lib/hamlit/rails_helpers.rb
|
329
|
+
- lib/hamlit/rails_template.rb
|
330
|
+
- lib/hamlit/railtie.rb
|
331
|
+
- lib/hamlit/ruby_expression.rb
|
332
|
+
- lib/hamlit/string_splitter.rb
|
333
|
+
- lib/hamlit/template.rb
|
334
|
+
- lib/hamlit/utils.rb
|
335
|
+
- lib/hamlit/version.rb
|
336
|
+
homepage: https://github.com/k0kubun/hamlit
|
337
|
+
licenses:
|
338
|
+
- MIT
|
339
|
+
metadata: {}
|
340
|
+
post_install_message:
|
341
|
+
rdoc_options: []
|
342
|
+
require_paths:
|
343
|
+
- lib
|
344
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - ">="
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '0'
|
349
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
350
|
+
requirements:
|
351
|
+
- - ">="
|
352
|
+
- !ruby/object:Gem::Version
|
353
|
+
version: '0'
|
354
|
+
requirements: []
|
355
|
+
rubyforge_project:
|
356
|
+
rubygems_version: 2.6.13
|
357
|
+
signing_key:
|
358
|
+
specification_version: 4
|
359
|
+
summary: High Performance Haml Implementation
|
360
|
+
test_files: []
|