hamlit 2.15.0 → 2.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/bench.yml +46 -0
  3. data/CHANGELOG.md +7 -0
  4. data/hamlit.gemspec +1 -1
  5. data/lib/hamlit/version.rb +1 -1
  6. metadata +4 -37
  7. data/benchmark/boolean_attribute.haml +0 -6
  8. data/benchmark/class_attribute.haml +0 -5
  9. data/benchmark/common_attribute.haml +0 -3
  10. data/benchmark/data_attribute.haml +0 -4
  11. data/benchmark/dynamic_attributes/boolean_attribute.haml +0 -4
  12. data/benchmark/dynamic_attributes/class_attribute.haml +0 -4
  13. data/benchmark/dynamic_attributes/common_attribute.haml +0 -2
  14. data/benchmark/dynamic_attributes/data_attribute.haml +0 -2
  15. data/benchmark/dynamic_attributes/id_attribute.haml +0 -2
  16. data/benchmark/dynamic_boolean_attribute.haml +0 -4
  17. data/benchmark/dynamic_merger/benchmark.rb +0 -25
  18. data/benchmark/dynamic_merger/hello.haml +0 -50
  19. data/benchmark/dynamic_merger/hello.string +0 -50
  20. data/benchmark/etc/attribute_builder.haml +0 -5
  21. data/benchmark/etc/real_sample.haml +0 -888
  22. data/benchmark/etc/real_sample.rb +0 -11
  23. data/benchmark/etc/static_analyzer.haml +0 -1
  24. data/benchmark/etc/string_interpolation.haml +0 -2
  25. data/benchmark/etc/tags.haml +0 -3
  26. data/benchmark/etc/tags_loop.haml +0 -2
  27. data/benchmark/ext/build_data.rb +0 -17
  28. data/benchmark/ext/build_id.rb +0 -13
  29. data/benchmark/graph/graph.key +0 -0
  30. data/benchmark/graph/graph.png +0 -0
  31. data/benchmark/id_attribute.haml +0 -3
  32. data/benchmark/plain.haml +0 -4
  33. data/benchmark/script.haml +0 -4
  34. data/benchmark/slim/LICENSE +0 -21
  35. data/benchmark/slim/context.rb +0 -11
  36. data/benchmark/slim/run-benchmarks.rb +0 -94
  37. data/benchmark/slim/view.erb +0 -23
  38. data/benchmark/slim/view.haml +0 -18
  39. data/benchmark/slim/view.slim +0 -17
  40. data/benchmark/utils/benchmark_ips_extension.rb +0 -43
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46fb5b844211b5c8bc782ee88d23eca02b16f9285609e76447a493aa10ee442c
4
- data.tar.gz: b1069d514efd9b06b534ec82b3d524fbfde98e87b7b660af6041b60132b7324e
3
+ metadata.gz: b60ad4fa07019d3e03bc5d521d624607f4dc1740ccaf73f1cee9de9826f38618
4
+ data.tar.gz: 4d458ddca75c342e4f10f4cf8ccf8f660f0db230dcd8973f91bd37a3c5cf7ae9
5
5
  SHA512:
6
- metadata.gz: 52c0df95e9916faa1abecd927019d4429e28607fc4096157f6386f981cb2f5e6249e8aaabab0693942f7f31c01d0babcaf4dabea1b4cc92ea0d40b2d2cdf531c
7
- data.tar.gz: 5241185ed6759415eaf9a263142a6b937fe316c550a59490964e6d10668e26529d730996fd3443d953216fe2a2d30e9af0f5ad241eea92c9e64cf68af55f82bb
6
+ metadata.gz: 2bf9dda73fd3ad47f464a5c05327558f7f21afa2e5fa57e3c48ee726c3fcb93177a8fac9300889e7d42e3c5d0cc443a111fe9b2978d55504dbc92474488e0436
7
+ data.tar.gz: 06a36cc3240044789e160583742950f3c579f9de273ccb0291cd825264da2ea8821b0152ef4aef5d3f4c888c37c3c318628c23bdf60b8042af865a85812efa81
@@ -0,0 +1,46 @@
1
+ name: bench
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+ pull_request:
7
+ types:
8
+ - opened
9
+ - synchronize
10
+ - reopened
11
+ schedule:
12
+ - cron: "00 15 * * *" # 7:00 PST (-8), 8:00 PDT (-7)
13
+ jobs:
14
+ bench:
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ include:
20
+ - slim: 1
21
+ - template: 'benchmark/boolean_attribute.haml,benchmark/class_attribute.haml,benchmark/id_attribute.haml,benchmark/data_attribute.haml,benchmark/common_attribute.haml'
22
+ - template: 'benchmark/dynamic_attributes/boolean_attribute.haml,benchmark/dynamic_attributes/class_attribute.haml,benchmark/dynamic_attributes/id_attribute.haml,benchmark/dynamic_attributes/data_attribute.haml,benchmark/dynamic_attributes/common_attribute.haml'
23
+ - template: 'benchmark/etc/attribute_builder.haml'
24
+ - template: 'benchmark/etc/static_analyzer.haml'
25
+ - template: 'benchmark/etc/string_interpolation.haml'
26
+ - template: 'test/haml/templates/standard.haml'
27
+ compile: 1
28
+ steps:
29
+ - uses: actions/checkout@v2
30
+ - name: Set up Ruby
31
+ uses: ruby/setup-ruby@v1
32
+ with:
33
+ ruby-version: 3.0
34
+ - uses: actions/cache@v2
35
+ with:
36
+ path: vendor/bundle
37
+ key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
38
+ restore-keys: ${{ runner.os }}-gems-
39
+ - run: sudo apt-get update && sudo apt-get install -y nodejs libxslt-dev # nodejs for execjs, libxslt for TruffleRuby nokogiri
40
+ - name: bundle install
41
+ run: bundle config path vendor/bundle && bundle install -j$(nproc) --retry 3
42
+ - run: bundle exec rake bench
43
+ env:
44
+ SLIM_BENCH: ${{ matrix.slim }}
45
+ TEMPLATE: ${{ matrix.template }}
46
+ COMPILE: ${{ matrix.compile }}
data/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. This
4
4
  project adheres to [Semantic Versioning](http://semver.org/). This change log is based upon
5
5
  [keep-a-changelog](https://github.com/olivierlacan/keep-a-changelog).
6
6
 
7
+ ## [2.15.1](https://github.com/k0kubun/hamlit/compare/v2.15.0...v2.15.1) - 2021-07-23
8
+
9
+ ### Fixed
10
+
11
+ - Remove `benchmark` from the gem package to reduce its size [#186](https://github.com/k0kubun/hamlit/issues/186)
12
+ *Thanks to @pocke*
13
+
7
14
  ## [2.15.0](https://github.com/k0kubun/hamlit/compare/v2.14.6...v2.15.0) - 2021-04-12
8
15
 
9
16
  ### Added
data/hamlit.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = 'https://github.com/k0kubun/hamlit'
15
15
  spec.license = 'MIT'
16
16
 
17
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|sample)/}) }
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|sample|benchmark)/}) }
18
18
  spec.bindir = 'exe'
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ['lib']
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hamlit
3
- VERSION = '2.15.0'
3
+ VERSION = '2.15.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamlit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.0
4
+ version: 2.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-13 00:00:00.000000000 Z
11
+ date: 2021-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: temple
@@ -258,6 +258,7 @@ extensions:
258
258
  extra_rdoc_files: []
259
259
  files:
260
260
  - ".github/FUNDING.yml"
261
+ - ".github/workflows/bench.yml"
261
262
  - ".github/workflows/test.yml"
262
263
  - ".gitignore"
263
264
  - CHANGELOG.md
@@ -266,40 +267,6 @@ files:
266
267
  - README.md
267
268
  - REFERENCE.md
268
269
  - Rakefile
269
- - benchmark/boolean_attribute.haml
270
- - benchmark/class_attribute.haml
271
- - benchmark/common_attribute.haml
272
- - benchmark/data_attribute.haml
273
- - benchmark/dynamic_attributes/boolean_attribute.haml
274
- - benchmark/dynamic_attributes/class_attribute.haml
275
- - benchmark/dynamic_attributes/common_attribute.haml
276
- - benchmark/dynamic_attributes/data_attribute.haml
277
- - benchmark/dynamic_attributes/id_attribute.haml
278
- - benchmark/dynamic_boolean_attribute.haml
279
- - benchmark/dynamic_merger/benchmark.rb
280
- - benchmark/dynamic_merger/hello.haml
281
- - benchmark/dynamic_merger/hello.string
282
- - benchmark/etc/attribute_builder.haml
283
- - benchmark/etc/real_sample.haml
284
- - benchmark/etc/real_sample.rb
285
- - benchmark/etc/static_analyzer.haml
286
- - benchmark/etc/string_interpolation.haml
287
- - benchmark/etc/tags.haml
288
- - benchmark/etc/tags_loop.haml
289
- - benchmark/ext/build_data.rb
290
- - benchmark/ext/build_id.rb
291
- - benchmark/graph/graph.key
292
- - benchmark/graph/graph.png
293
- - benchmark/id_attribute.haml
294
- - benchmark/plain.haml
295
- - benchmark/script.haml
296
- - benchmark/slim/LICENSE
297
- - benchmark/slim/context.rb
298
- - benchmark/slim/run-benchmarks.rb
299
- - benchmark/slim/view.erb
300
- - benchmark/slim/view.haml
301
- - benchmark/slim/view.slim
302
- - benchmark/utils/benchmark_ips_extension.rb
303
270
  - bin/bench
304
271
  - bin/console
305
272
  - bin/ruby
@@ -393,7 +360,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
393
360
  - !ruby/object:Gem::Version
394
361
  version: '0'
395
362
  requirements: []
396
- rubygems_version: 3.2.3
363
+ rubygems_version: 3.1.2
397
364
  signing_key:
398
365
  specification_version: 4
399
366
  summary: High Performance Haml Implementation
@@ -1,6 +0,0 @@
1
- %input{ disabled: false }
2
- %input{ disabled: true }
3
- - disabled = false
4
- %input{ disabled: disabled }
5
- - disabled = true
6
- %input{ disabled: disabled }
@@ -1,5 +0,0 @@
1
- .book{ class: 'content active' }
2
- .book(class='content active')
3
-
4
- - klass = %w[content active]
5
- .book{ class: klass }
@@ -1,3 +0,0 @@
1
- %a{ href: '&"\'<>' }
2
- - href = '&"\'<>'
3
- %a{ href: href }
@@ -1,4 +0,0 @@
1
- %div{ data: { disabled: false } }
2
- %div{ data: { disabled: true } }
3
- - hash = { 'user' => { id: 1234, name: 'k0kubun' }, book_id: 5432 }
4
- %div{ data: hash } data
@@ -1,4 +0,0 @@
1
- - hash = { disabled: false }
2
- %input{ hash }
3
- - hash = { disabled: true }
4
- %input{ hash }
@@ -1,4 +0,0 @@
1
- - hash = { class: %w[content active] }
2
- .book{ hash }
3
- - arr = %w[foo bar]
4
- .book(class=arr){ hash }
@@ -1,2 +0,0 @@
1
- - hash = { href: '&"\'<>' }
2
- %a{ hash }
@@ -1,2 +0,0 @@
1
- - hash = { data: { 'user' => { id: 1234, name: 'k0kubun' }, book_id: 5432 } }
2
- %div{ hash } data
@@ -1,2 +0,0 @@
1
- - hash = { id: %w[content active] }
2
- #book{ hash }
@@ -1,4 +0,0 @@
1
- - disabled = false
2
- %input{ disabled: disabled }
3
- - disabled = true
4
- %input{ disabled: disabled }
@@ -1,25 +0,0 @@
1
- # Original: https://github.com/amatsuda/string_template/blob/master/benchmark.rb
2
- require 'benchmark_driver'
3
-
4
- Benchmark.driver(repeat_count: 8) do |x|
5
- x.prelude %{
6
- require 'rails'
7
- require 'action_view'
8
- require 'string_template'
9
- StringTemplate::Railtie.run_initializers
10
- require 'hamlit'
11
- Hamlit::Railtie.run_initializers
12
- Hamlit::RailsTemplate.set_options(escape_html: false, generator: Temple::Generators::ArrayBuffer)
13
- require 'action_view/base'
14
-
15
- (view = Class.new(ActionView::Base).new(ActionView::LookupContext.new(''))).instance_variable_set(:@world, 'world!')
16
-
17
- # compile template
18
- hello = 'benchmark/dynamic_merger/hello'
19
- view.render(template: hello, handlers: 'string')
20
- view.render(template: hello, handlers: 'haml')
21
- }
22
- x.report 'string', %{ view.render(template: hello, handlers: 'string') }
23
- x.report 'hamlit', %{ view.render(template: hello, handlers: 'haml') }
24
- x.loop_count 100_000
25
- end
@@ -1,50 +0,0 @@
1
- hello, #{ @world }
2
- hello, #{ @world }
3
- hello, #{ @world }
4
- hello, #{ @world }
5
- hello, #{ @world }
6
- hello, #{ @world }
7
- hello, #{ @world }
8
- hello, #{ @world }
9
- hello, #{ @world }
10
- hello, #{ @world }
11
- hello, #{ @world }
12
- hello, #{ @world }
13
- hello, #{ @world }
14
- hello, #{ @world }
15
- hello, #{ @world }
16
- hello, #{ @world }
17
- hello, #{ @world }
18
- hello, #{ @world }
19
- hello, #{ @world }
20
- hello, #{ @world }
21
- hello, #{ @world }
22
- hello, #{ @world }
23
- hello, #{ @world }
24
- hello, #{ @world }
25
- hello, #{ @world }
26
- hello, #{ @world }
27
- hello, #{ @world }
28
- hello, #{ @world }
29
- hello, #{ @world }
30
- hello, #{ @world }
31
- hello, #{ @world }
32
- hello, #{ @world }
33
- hello, #{ @world }
34
- hello, #{ @world }
35
- hello, #{ @world }
36
- hello, #{ @world }
37
- hello, #{ @world }
38
- hello, #{ @world }
39
- hello, #{ @world }
40
- hello, #{ @world }
41
- hello, #{ @world }
42
- hello, #{ @world }
43
- hello, #{ @world }
44
- hello, #{ @world }
45
- hello, #{ @world }
46
- hello, #{ @world }
47
- hello, #{ @world }
48
- hello, #{ @world }
49
- hello, #{ @world }
50
- hello, #{ @world }
@@ -1,50 +0,0 @@
1
- hello, #{ @world }
2
- hello, #{ @world }
3
- hello, #{ @world }
4
- hello, #{ @world }
5
- hello, #{ @world }
6
- hello, #{ @world }
7
- hello, #{ @world }
8
- hello, #{ @world }
9
- hello, #{ @world }
10
- hello, #{ @world }
11
- hello, #{ @world }
12
- hello, #{ @world }
13
- hello, #{ @world }
14
- hello, #{ @world }
15
- hello, #{ @world }
16
- hello, #{ @world }
17
- hello, #{ @world }
18
- hello, #{ @world }
19
- hello, #{ @world }
20
- hello, #{ @world }
21
- hello, #{ @world }
22
- hello, #{ @world }
23
- hello, #{ @world }
24
- hello, #{ @world }
25
- hello, #{ @world }
26
- hello, #{ @world }
27
- hello, #{ @world }
28
- hello, #{ @world }
29
- hello, #{ @world }
30
- hello, #{ @world }
31
- hello, #{ @world }
32
- hello, #{ @world }
33
- hello, #{ @world }
34
- hello, #{ @world }
35
- hello, #{ @world }
36
- hello, #{ @world }
37
- hello, #{ @world }
38
- hello, #{ @world }
39
- hello, #{ @world }
40
- hello, #{ @world }
41
- hello, #{ @world }
42
- hello, #{ @world }
43
- hello, #{ @world }
44
- hello, #{ @world }
45
- hello, #{ @world }
46
- hello, #{ @world }
47
- hello, #{ @world }
48
- hello, #{ @world }
49
- hello, #{ @world }
50
- hello, #{ @world }
@@ -1,5 +0,0 @@
1
- - h = { 'user' => { id: 1234, name: 'eagletmt' }, book_id: 5432 }
2
- - c = %w[content active]
3
-
4
- %span.book{data: h, class: c}
5
- Book
@@ -1,888 +0,0 @@
1
- #id-1
2
- = render partial: 'test'
3
-
4
- %ul#id-2.class-1.class-2
5
-
6
- %section#id-3
7
- .class-3 string-1
8
- .class-4
9
- .class-5 string-2
10
- %pre.class-6(readonly="readonly" style='width:1px')
11
- :preserve
12
- .class-7 string-3
13
-
14
- .class-8 string-4
15
- %pre.class-9(readonly="readonly" style='width:2px')
16
- :preserve
17
- .class-10 string-5
18
- %p
19
- Hello world
20
-
21
- .class-12 string-6
22
- %pre.class-13(readonly="readonly" style='width:3px')
23
- :preserve
24
- .class-14 string-7
25
- %p
26
- Hello world
27
-
28
- %section#id-4
29
- .class-17 string-8
30
- .class-18
31
- .class-19 string-9
32
- %pre.class-20(readonly="readonly" style='width:4px')
33
- :preserve
34
- .class-21 string-10
35
-
36
- .class-22 string-11
37
- %pre.class-23(readonly="readonly" style='width:5px')
38
- :preserve
39
- .class-24 string-12
40
-
41
- .class-25.class-26 Hello world
42
- %pre.class-27(readonly="readonly" style='width:6px')
43
- :preserve
44
- .class-28.class-29 Hello world
45
-
46
- %section#id-5
47
- .class-30 string-13
48
- .class-31 string-14
49
- .class-32
50
- %pre.class-33(readonly="readonly" style='width:7px')
51
- :preserve
52
- .class-34 string-15
53
-
54
- %section#id-6
55
- .class-35 string-16
56
- %ul.class-36.class-37
57
- %li
58
- = link_to 'link', '#'
59
- %li
60
- = link_to 'link', '#', class: 'klass'
61
- %li
62
- = link_to 'link', '#', class: 'klass'
63
- %li
64
- = link_to 'link', '#', class: 'klass'
65
- %li
66
- = link_to 'link', '#', class: 'klass'
67
- .class-38
68
- %p text-17
69
- %p text-18
70
- %pre.class-41(readonly="readonly" style='width:8px')
71
- :preserve
72
- %ul.class-42.class-43
73
- %li
74
- = link_to 'link', '#'
75
- %li
76
- = link_to 'link', '#', class: 'klass'
77
- %li
78
- = link_to 'link', '#', class: 'klass'
79
- %li
80
- = link_to 'link', '#', class: 'klass'
81
- %li
82
- = link_to 'link', '#', class: 'klass'
83
-
84
- %section#id-7
85
- .class-44 string-19
86
- %ul.class-45.class-46
87
- %li#id-8
88
- = link_to 'link', '#', class: 'klass1 klass2'
89
- .class-47.class-48.class-49
90
- Hello world
91
- .class-50
92
- %pre.class-51(readonly="readonly" style='width:9px')
93
- :preserve
94
- %ul.class-52.class-53
95
- %li#id-10
96
- = link_to 'link',
97
- '#id-11',
98
- class: 'klass1 klass2'
99
- .class-54.class-55.class-56
100
- Hello world
101
-
102
- %section#id-12
103
- .class-57 string-20
104
- %ul.class-58.class-59
105
- %li
106
- = link_to 'link', '#'
107
- .class-60 string-21
108
- .class-61 string-22
109
- %li
110
- = link_to 'link', '#'
111
- .class-62 string-23
112
- .class-63 string-24
113
- .class-64
114
- %pre.class-65(readonly="readonly" style='width:10px')
115
- :preserve
116
- %ul.class-66.class-67
117
- %li
118
- = link_to 'link', '#'
119
- .class-68 string-25
120
- .class-69 string-26
121
- %li
122
- = link_to 'link', '#'
123
- .class-70 string-27
124
- .class-71 string-28
125
-
126
- %section#id-13
127
- .class-72 string-29
128
- %ul.class-73.class-74
129
- %li
130
- = link_to 'link', '#'
131
- .class-75 string-30
132
- .class-76 string-31
133
- %li
134
- = link_to 'link', '#'
135
- = image_tag 'https://google.com/favicon.ico', class: 'klass1'
136
- .class-78 string-32
137
- %li
138
- = link_to 'link', '#'
139
- = image_tag 'https://google.com/favicon.ico', class: 'klass1'
140
- .class-80
141
- .class-81 string-33
142
- .class-82 string-34
143
- %li
144
- = link_to 'link', '#'
145
- = image_tag 'https://google.com/favicon.ico', class: 'klass1'
146
- .class-84
147
- .class-85 string-35
148
- .class-86 string-36
149
- %li
150
- = link_to 'link', '#'
151
- = image_tag 'https://google.com/favicon.ico', class: 'klass1'
152
- .class-88 string-37
153
- .class-89 string-38
154
- .class-90
155
- %pre.class-91(readonly="readonly" style='width:11px')
156
- :preserve
157
- %ul.class-92.class-93
158
- %li
159
- = link_to 'link', '#'
160
- .class-94 string-39
161
- .class-95 string-40
162
- %li
163
- = link_to 'link', '#'
164
- = image_tag class: 'klass1'
165
- .class-96 string-41
166
- %li
167
- = link_to 'link', '#'
168
- = image_tag class: 'klass1'
169
- .class-97
170
- .class-98 string-42
171
- .class-99 string-43
172
- %li
173
- = link_to 'link', '#'
174
- = image_tag class: 'klass1'
175
- .class-100
176
- .class-101 string-44
177
- .class-102 string-45
178
- %li
179
- = link_to 'link', '#'
180
- = image_tag class: 'klass1'
181
- .class-103 string-46
182
- .class-104 string-47
183
-
184
- %section#id-14
185
- .class-105 string-48
186
- %ul.class-106.class-107.class-108
187
- %li
188
- = link_to 'link', '#'
189
- %li
190
- = link_to 'link', '#'
191
- %li
192
- = link_to 'link', '#'
193
- %li
194
- = link_to 'link', '#'
195
-
196
- .class-109
197
- %pre.class-110(readonly="readonly" style='width:12px')
198
- :preserve
199
- %ul.class-111.class-112.class-113
200
- %li
201
- = link_to 'link', '#'
202
- %li
203
- = link_to 'link', '#'
204
-
205
- %section#id-15
206
- .class-114 string-49
207
- %ul.class-115.class-116.class-117
208
- %li
209
- = link_to 'link', '#', class: 'klass'
210
- = image_tag 'https://github.com/favicon.ico', class: 'klass'
211
- .class-119 string-50
212
- %li
213
- = link_to 'link', '#', class: 'klass'
214
- = image_tag 'https://github.com/favicon.ico', class: 'klass'
215
- .class-121 string-51
216
- %li
217
- = link_to 'link', '#', class: 'klass'
218
- = image_tag 'https://github.com/favicon.ico', class: 'klass'
219
- .class-123 string-52
220
- %li
221
- = link_to 'link', '#', class: 'klass'
222
- = image_tag 'https://github.com/favicon.ico', class: 'klass'
223
- .class-125 string-53
224
-
225
- .class-126
226
- %pre.class-127(readonly="readonly" style='width:13px')
227
- :preserve
228
- %ul.class-128.class-129.class-130
229
- %li
230
- = link_to 'link', '#'
231
- = image_tag clsss: 'klass'
232
- .class-131 string-54
233
- %li
234
- = link_to 'link', '#'
235
- = image_tag clsss: 'klass'
236
- .class-132 string-55
237
-
238
- %section#id-16
239
- .class-133 string-56
240
- %ul.class-134.class-135
241
- %li= link_to 'link', '#'
242
- %li= link_to 'link', '#'
243
- %li= link_to 'link', '#'
244
- .class-136
245
- %pre.class-137(readonly="readonly" style='width:14px')
246
- :preserve
247
- %ul.class-138.class-139
248
- %li= link_to 'link', '#'
249
- %li= link_to 'link', '#'
250
- %li= link_to 'link', '#'
251
-
252
- %section#id-17
253
- .class-140 string-57
254
- .class-141
255
- %ul.class-142
256
- %li
257
- = image_tag 'https://github.com/favicon.ico'
258
- %li
259
- = image_tag 'https://github.com/favicon.ico'
260
- %li
261
- = image_tag 'https://github.com/favicon.ico'
262
-
263
-
264
- %pre.class-146(readonly="readonly" style='width:15px')
265
- :preserve
266
- %ul.class-147
267
- %li
268
- = image_tag ''
269
- %li
270
- = image_tag ''
271
- %li
272
- = image_tag ''
273
-
274
- %section#id-18
275
- .class-148 string-58
276
- .class-149
277
- .class-150
278
- .class-151.class-152
279
- = image_tag 'https://github.com/favicon.ico'
280
- .class-154.class-155
281
- .class-156-title string-59
282
- Hello world
283
-
284
- %pre.class-157(readonly="readonly" style='width:16px')
285
- :preserve
286
- .class-158
287
- .class-159.class-160
288
- Hello world
289
- .class-161.class-162
290
- Hello world
291
-
292
- %p text-60
293
-
294
- %section#id-19
295
- .class-164 string-61
296
- .class-165
297
- .class-166
298
- .class-167
299
- = image_tag 'https://github.com/favicon.ico'
300
- .class-169
301
- = image_tag 'https://github.com/favicon.ico'
302
- .class-171
303
- = image_tag 'https://github.com/favicon.ico'
304
-
305
- .class-173
306
- .class-174-title string-62
307
- str
308
-
309
- %pre.class-175(readonly="readonly" style='width:17px')
310
- :preserve
311
- .class-176
312
- .class-177
313
- = image_tag ''
314
- .class-178
315
- = image_tag ''
316
- .class-179
317
- = image_tag ''
318
- .class-180
319
- content
320
- %p text-63
321
- %p text-64
322
-
323
-
324
- %section#id-20
325
- .class-182 string-65
326
- .class-183
327
- %ul.class-184.class-185
328
- %li.class-186.class-187
329
- %span.class-188 str
330
- %li.class-189
331
- = link_to 'link', '#', class: 'klass'
332
- .class-190
333
- %pre.class-191(readonly="readonly" style='width:18px')
334
- :preserve
335
- .class-192
336
- %ul.class-193.class-194
337
- %li.class-195.class-196
338
- %span.class-197 str
339
- %li.class-198
340
- = link_to 'link', '#', class: 'klass'
341
-
342
- %section#id-21
343
- .class-199 string-66
344
- .class-200
345
- %ul.class-201
346
- %li.class-202.class-203
347
- %span.class-204 str
348
- %li.class-205
349
- = link_to 'link', '#', class: 'klass'
350
- %li.class-206
351
- = link_to 'link', '#', class: 'klass'
352
- .class-207
353
- %pre.class-208(readonly="readonly" style='width:19px')
354
- :preserve
355
- .class-209
356
- %ul.class-210
357
- %li.class-211.class-212
358
- %span.class-213 str
359
- %li.class-214
360
- = link_to 'link', '#', class: 'klass'
361
- %li.class-215
362
- = link_to 'link', '#', class: 'klass'
363
-
364
- %section#id-22
365
- .class-216 string-67
366
- %ul.class-217
367
- %li.class-218
368
- = link_to 'link', '#'
369
- %li
370
- = link_to 'link', '#'
371
- %li
372
- = link_to 'link', '#'
373
- .class-219
374
- %pre.class-220(readonly="readonly" style='width:20px')
375
- :preserve
376
- %ul.class-221
377
- %li.class-222
378
- = link_to 'link', '#'
379
- %li
380
- = link_to 'link', '#'
381
- %li
382
- = link_to 'link', '#'
383
-
384
- %p text-68
385
-
386
- %section#id-23
387
- .class-223 string-69
388
- %ul.class-224
389
- %li
390
- = link_to 'link', '#'
391
- %li
392
- = link_to 'link', '#'
393
- %li
394
- = link_to 'link', '#'
395
- .class-225
396
- %pre.class-226(readonly="readonly" style='width:21px')
397
- :preserve
398
- %ul.class-227
399
- %li
400
- = link_to 'link', '#'
401
- %li
402
- = link_to 'link', '#'
403
- %li
404
- = link_to 'link', '#'
405
-
406
- %section#id-24
407
- .class-228 string-70
408
- .class-229
409
- %a(href="#" class="button") Hello world
410
- %p text-71
411
- %pre.class-230(readonly="readonly" style='width:22px')
412
- :preserve
413
- = link_to 'link', '#', class: 'klass'
414
-
415
- %a(href="#" class="button min") Hello world
416
- %pre.class-231(readonly="readonly" style='width:23px')
417
- :preserve
418
- = link_to 'link', '#', class: 'klass'
419
-
420
- %section#id-25
421
- .class-232 string-72
422
- .class-233
423
- %a(href="#" class="klass") Hello world
424
- %p text-73
425
- %pre.class-234(readonly="readonly" style='width:24px')
426
- :preserve
427
- = link_to 'link', '#',
428
- class: 'klass'
429
-
430
- %a(href="#" class="klass") Hello world
431
- %pre.class-235(readonly="readonly" style='width:25px')
432
- :preserve
433
- = link_to 'link', '#',
434
- class: 'klass'
435
-
436
- %a(href="#" class="klass") Hello world
437
- %pre.class-236(readonly="readonly" style='width:26px')
438
- :preserve
439
- = link_to 'link', '#',
440
- class: 'klass'
441
-
442
- %section#id-26
443
- .class-237 string-74
444
- .class-238
445
- %a(href="#" class="klass") Hello world
446
- %p text-75
447
- %pre.class-239(readonly="readonly" style='width:27px')
448
- :preserve
449
- = link_to 'link', '#',
450
- class: 'klass'
451
- %a(href="#" class="klass") Hello world
452
- %pre.class-240(readonly="readonly" style='width:28px')
453
- :preserve
454
- = link_to 'link', '#',
455
- class: 'klass'
456
- %a(href="#" class="klass") Hello world
457
- %pre.class-241(readonly="readonly" style='width:29px')
458
- :preserve
459
- = link_to 'link', '#',
460
- class: 'klass'
461
-
462
- %section#id-27
463
- .class-242 string-76
464
- .class-243
465
- %a(href="#" class="klass") Hello world
466
- %p text-77
467
- %pre.class-244(readonly="readonly" style='width:30px')
468
- :preserve
469
- = link_to 'link', '#',
470
- class: 'klass'
471
- %a(href="#" class="klass") Hello world
472
- %pre.class-245(readonly="readonly" style='width:31px')
473
- :preserve
474
- = link_to 'link', '#',
475
- class: 'klass'
476
- %a(href="#" class="klass") Hello world
477
- %pre.class-246(readonly="readonly" style='width:32px')
478
- :preserve
479
- = link_to 'link', '#',
480
- class: 'klass'
481
-
482
- %section#id-28
483
- .class-247 string-78
484
- %a(href="#" class="klass")
485
- str
486
- %span.class-248
487
- str
488
- %b text-79
489
- str
490
- .class-249
491
- %pre.class-250(readonly="readonly" style='width:33px')
492
- :preserve
493
- = link_to 'link', '#'
494
- %span.class-251
495
- str
496
- %b text-80
497
- str
498
-
499
- %section#id-29
500
- .class-252 string-81
501
- %label.class-253{for: 'f1_c1'}
502
- %input{type: 'checkbox', id: 'f1_c1', checked: 'checked'}
503
- str
504
- %label.class-254{for: 'f1_c2'}
505
- %input{type: 'checkbox', id: 'f1_c2'}
506
- str
507
- .class-255
508
- %pre.class-256(readonly="readonly" style='width:34px')
509
- :preserve
510
- %label.class-257{for: 'f1_c1'}
511
- %input{type: 'checkbox', id: 'f1_c1', checked: 'checked'}
512
- str
513
- %label.class-258{for: 'f1_c2'}
514
- %input{type: 'checkbox', id: 'f1_c2'}
515
- str
516
-
517
- %label.class-259{for: 'f1_r1'}
518
- %input{type: 'radio', name: 'form1', id: 'f1_r1', checked: 'checked'}
519
- str
520
- %label.class-260{for: 'f1_r2'}
521
- %input{type: 'radio', name: 'form1', id: 'f1_r2'}
522
- str
523
- .class-261
524
- %pre.class-262(readonly="readonly" style='width:35px')
525
- :preserve
526
- %label.class-263{for: 'f1_r1'}
527
- %input{type: 'radio', name: 'form1', id: 'f1_r1', checked: 'checked'}
528
- str
529
- %label.class-264{for: 'f1_r2'}
530
- %input{type: 'radio', name: 'form1', id: 'f1_r2'}
531
- str
532
-
533
- %section#id-30
534
- .class-265 string-82
535
- %ul.class-266.class-267
536
- %li
537
- %label.class-268{for: 'f2_c1'}
538
- %input{type: 'checkbox', id: 'f2_c1', checked: 'checked'}
539
- str
540
- %li
541
- %label.class-269{for: 'f2_c2'}
542
- %input{type: 'checkbox', id: 'f2_c2'}
543
- str
544
- .class-270
545
- %pre.class-271(readonly="readonly" style='width:36px')
546
- :preserve
547
- %ul.class-272.class-273
548
- %li
549
- %label.class-274{for: 'f2_c1'}
550
- %input{type: 'checkbox', id: 'f2_c1', checked: 'checked'}
551
- str
552
- %li
553
- %label.class-275{for: 'f2_c2'}
554
- %input{type: 'checkbox', id: 'f2_c2'}
555
- str
556
-
557
- %ul.class-276.class-277
558
- %li
559
- %label.class-278{for: 'f2_r1'}
560
- %input{type: 'radio', name: 'form2', id: 'f2_r1', checked: 'checked'}
561
- str
562
- %li
563
- %label.class-279{for: 'f2_r2'}
564
- %input{type: 'radio', name: 'form2', id: 'f2_r2'}
565
- str
566
- .class-280
567
- %pre.class-281(readonly="readonly" style='width:37px')
568
- :preserve
569
- %ul.class-282.class-283
570
- %li
571
- %label.class-284{for: 'f2_r1'}
572
- %input{type: 'radio', name: 'form2', id: 'f2_r1', checked: 'checked'}
573
- str
574
- %li
575
- %label.class-285{for: 'f2_r2'}
576
- %input{type: 'radio', name: 'form2', id: 'f2_r2'}
577
- str
578
-
579
- %section#id-31
580
- .class-286 string-83
581
- .class-287
582
- %ul.class-288
583
- %li text-84
584
- %li text-85
585
- %pre.class-289(readonly="readonly" style='width:38px')
586
- :preserve
587
- %ul.class-290
588
- %li text-86
589
- %li text-87
590
-
591
- %ul.class-291.class-292
592
- %li text-88
593
- %li text-89
594
- %pre.class-293(readonly="readonly" style='width:39px')
595
- :preserve
596
- %ul.class-294.class-295
597
- %li text-90
598
- %li text-91
599
-
600
- %ul.class-296.class-297
601
- %li text-92
602
- %li text-93
603
- %pre.class-298(readonly="readonly" style='width:40px')
604
- :preserve
605
- %ul.class-299.class-300
606
- %li text-94
607
- %li text-95
608
-
609
- %ul.class-301.class-302
610
- %li text-96
611
- %li text-97
612
- %pre.class-303(readonly="readonly" style='width:41px')
613
- :preserve
614
- %ul.class-304.class-305
615
- %li text-98
616
- %li text-99
617
-
618
- %section#id-32
619
- .class-306 string-100
620
- .class-307
621
- = image_tag '#'
622
- = image_tag '#'
623
- %pre.class-312(readonly="readonly" style='width:42px')
624
- :preserve
625
- = image_tag '#'
626
- = image_tag '#'
627
-
628
- %section#id-33
629
- .class-315 string-101
630
- .class-316
631
- = image_tag '#'
632
- %span.class-317 str
633
- %pre.class-318(readonly="readonly" style='width:43px')
634
- :preserve
635
- = image_tag '#'
636
- %span.class-319 str
637
-
638
- %section#id-34
639
- .class-320 string-102
640
- .class-321
641
- %a(href="#" class="klass")
642
- %pre.class-322(readonly="readonly" style='width:44px')
643
- :preserve
644
- = link_to '', '#', class: 'klass'
645
-
646
- %section#id-35
647
- .class-323 string-103
648
- .class-324
649
- %a(href="#" class="klass")
650
- %pre.class-325(readonly="readonly" style='width:45px')
651
- :preserve
652
- = link_to '', '#', class: 'klass'
653
-
654
- %section#id-36
655
- .class-326 string-104
656
- .class-327
657
- .class-328
658
- %a(rel="prev" href="#")
659
- %a(rel="next" href="#")
660
- %pre.class-329(readonly="readonly" style='width:46px')
661
- :preserve
662
- .class-330
663
- = link_to '', '#', rel: 'klass'
664
- = link_to '', '#', rel: 'klass'
665
-
666
- %section#id-37
667
- .class-331 string-105
668
- .class-332
669
- .class-333
670
- .class-334
671
- %strong text-106
672
- %span text-107
673
- .class-335{ style: "width: 50%;" }
674
-
675
- %pre.class-336{ readonly: "readonly", style: "height: 120px" }
676
- :preserve
677
- .class-337
678
- .class-338
679
- %strong text-108
680
- %span text-109
681
- .class-339{ style: "width: 50%;" }
682
-
683
- .class-340.class-341
684
- .class-342
685
- %strong text-110
686
- %span text-111
687
- .class-343{ style: "width: 50%;" }
688
-
689
- %pre.class-344{ readonly: "readonly", style: "height: 120px" }
690
- :preserve
691
- .class-345.class-346
692
- .class-347
693
- %strong text-112
694
- %span text-113
695
- .class-348{ style: "width: 50%;" }
696
-
697
- %section#id-38
698
- .class-349 string-114
699
- .class-350
700
- = render '#'
701
- = render '#'
702
- %pre.class-351(readonly="readonly" style='width:47px')
703
- :preserve
704
- = render '#'
705
- = render '#'
706
-
707
- %p text-115
708
- %p text-116
709
-
710
- %section#id-39
711
- .class-353 string-117
712
- .class-354
713
- = link_to 'link', '#', class: 'klass1 klass2', :'data-foo_bar' => 'foo!!'
714
- .class-355
715
- .class-356 string-118
716
- %pre.class-357(readonly="readonly" style='width:48px')
717
- :preserve
718
- = link_to 'link', '#',
719
- class: 'klass1 klass2',
720
- :'data-foo_bar' => 'foo!!'
721
- .class-358 string-119
722
- %pre.class-359(readonly="readonly" style='width:49px')
723
- :preserve
724
- foo.bar('Hoge')
725
-
726
- %section#id-40
727
- .class-361 string-120
728
- .class-362
729
- = link_to 'link', '#', class: 'klass1 klass2 klass3'
730
- .class-363
731
- .class-364 string-121
732
- %pre.class-365(readonly="readonly" style='width:50px')
733
- :preserve
734
- = link_to 'link', '#',
735
- class: 'klass1 klass2 klass3'
736
-
737
- .class-366 string-122
738
- %pre.class-367(readonly="readonly" style='width:51px')
739
- :preserve
740
- #id-43.class-368.class-369
741
- .class-370
742
- .class-371 string-123
743
- %a.class-372{href: "#"}
744
- str
745
-
746
- %p text-124
747
- %p text-125
748
-
749
- .class-373 string-126
750
- %pre.class-374(readonly="readonly" style='width:52px')
751
- :preserve
752
- // hello
753
- $(window).bind('click', function(event) {
754
- });
755
-
756
- // hello
757
- $('#id-44').bind('click', function(event) {
758
- });
759
-
760
- // world
761
- $('#id-45').bind('click', function(event) {
762
- });
763
-
764
- %p text-127
765
-
766
- %section#id-46
767
- .class-378 string-128
768
- .class-379
769
- %ul.class-380
770
- %li.class-381
771
- str1
772
- %li.class-382
773
- str2
774
- %li.class-383
775
- str3
776
- :javascript
777
- $('.class-384').foo({bar: '.class-386'});
778
- :css
779
- .class-387 {
780
- min-height: 13px;
781
- }
782
- .class-388 {
783
- height: 1px;
784
- background: #000;
785
- padding: 1px;
786
- text-align: center;
787
- }
788
- .class-390 {
789
- background: #000;
790
- }
791
- .class-392 {
792
- background: #000;
793
- }
794
-
795
- .class-394
796
- %pre.class-395(readonly="readonly" style='width:53px')
797
- :preserve
798
- .class-396
799
- %ul.class-397
800
- %li.class-398 str1
801
- %li.class-399 str2
802
- %li.class-400 str3
803
- :javascript
804
- $('.class-401').bar({foo: '.class-403'});
805
-
806
- %ul.class-404.class-405
807
- %li= link_to 'link', '#'
808
- %li= link_to 'link', '#'
809
- %li= link_to 'link', '#'
810
-
811
- .class-406
812
- %ul.class-407
813
- %li#id-52A.class-408 str1
814
- %li#id-53B.class-409 str2
815
- %li#id-54C.class-410 str3
816
-
817
- :javascript
818
- $('.class-411').click({foo: '.class-413 > li > a'});
819
-
820
- :css
821
- .class-414 {
822
- height: 1px;
823
- background: #000;
824
- padding: 1px;
825
- text-align: center;
826
- }
827
- .class-416 {
828
- background: #000;
829
- }
830
- .class-418 {
831
- background: #000;
832
- }
833
-
834
- .class-420
835
- %pre.class-421(readonly="readonly" style='width:54px')
836
- :preserve
837
- %ul.class-422.class-423
838
- %li= link_to 'link', '#'
839
- %li= link_to 'link', '#'
840
- %li= link_to 'link', '#'
841
-
842
- .class-424
843
- %ul.class-425
844
- %li#id-60A.class-426 str1
845
- %li#id-61B.class-427 str2
846
- %li#id-62C.class-428 str3
847
-
848
- :javascript
849
- $('.class-429').bind({links: '.klass'});
850
-
851
- %section#id-63
852
- .class-432 string-136
853
- .class-433
854
- .class-434 string-137
855
- %pre.class-435(readonly="readonly" style='width:55px')
856
- :preserve
857
- #id-64
858
- -# hello
859
-
860
- .class-436
861
- -# world
862
-
863
- %span.class-437
864
-
865
- #id-65
866
- -# hey
867
- .class-438 string-138
868
- %pre.class-439(readonly="readonly" style='width:56px')
869
- :preserve
870
- // hello
871
- $(document).bind('click', function(event) {
872
- });
873
-
874
- // world
875
- $(document).bind('click', function(event) {
876
- });
877
-
878
- #id-66XXX.class-442.class-443
879
- .class-444
880
- .class-445 string-139
881
-
882
- %a.class-446{href: "#"}
883
- str
884
-
885
- :javascript
886
- (function ($) {
887
- $(".foo").removeClass("bar");
888
- })(jQuery);