hanami-view 2.1.0.rc2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/hanami/view/version.rb +2 -2
- metadata +5 -6
- data/lib/hanami/view/context_helpers/content_helpers.rb +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6af4657bef0600d48bfea5710ec7e80560d587e143fa9789074d00cafa6bcb5
|
4
|
+
data.tar.gz: 42eb43b7e50f496f9ddda0e70bd9d030acc80bbefbf2b5e7771f542ca7b59657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14d4864da922dbbf7f87a01b8bdc450ee4fda9436d4ee16f3baea27c7491523a7cf0d6a5894956c48aa670e5568f7d12b3a27f9e531071d373aad8d441ef791d
|
7
|
+
data.tar.gz: 2aa67c6ca5fa7f63fd6585c98b619a522ce9bdaa48d3ea2c6537fcac63c889dcda4f45556ff67a2c6a07c228fdf2db72f2c976ab06e218f5264b91700756bdec
|
data/CHANGELOG.md
CHANGED
data/lib/hanami/view/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-view
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Riley
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dry-configurable
|
@@ -165,7 +165,6 @@ files:
|
|
165
165
|
- lib/hanami/view.rb
|
166
166
|
- lib/hanami/view/cache.rb
|
167
167
|
- lib/hanami/view/context.rb
|
168
|
-
- lib/hanami/view/context_helpers/content_helpers.rb
|
169
168
|
- lib/hanami/view/decorated_attributes.rb
|
170
169
|
- lib/hanami/view/erb/engine.rb
|
171
170
|
- lib/hanami/view/erb/filters/block.rb
|
@@ -214,11 +213,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
214
213
|
version: '3.0'
|
215
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
215
|
requirements:
|
217
|
-
- - "
|
216
|
+
- - ">="
|
218
217
|
- !ruby/object:Gem::Version
|
219
|
-
version:
|
218
|
+
version: '0'
|
220
219
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
220
|
+
rubygems_version: 3.5.6
|
222
221
|
signing_key:
|
223
222
|
specification_version: 4
|
224
223
|
summary: A complete, standalone view rendering system that gives you everything you
|
@@ -1,26 +0,0 @@
|
|
1
|
-
module Hanami
|
2
|
-
class View
|
3
|
-
module ContextHelpers
|
4
|
-
module ContentHelpers
|
5
|
-
def initialize(**)
|
6
|
-
@content_for = {}
|
7
|
-
super
|
8
|
-
end
|
9
|
-
|
10
|
-
def content_for(key, value = nil, &block)
|
11
|
-
output = nil
|
12
|
-
|
13
|
-
if block
|
14
|
-
@content_for[key] = yield
|
15
|
-
elsif value
|
16
|
-
@content_for[key] = value
|
17
|
-
else
|
18
|
-
output = @content_for[key]
|
19
|
-
end
|
20
|
-
|
21
|
-
output
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|