middleman-core 4.3.1 → 4.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/middleman-core/renderers/haml.rb +7 -0
- data/lib/middleman-core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb75ea4ac0afae1968d76af0348066991e0fe4d6be8b7554cb0fd57744da8ae5
|
4
|
+
data.tar.gz: a01a7220b19626efe15591e61c98b7698b6ab92d9be9734f6044e1a3fe7ae52e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fde264ab5c1cfce6903ebe2cd32e461ce6aef586085cf10b3c1bb2d2bc7fb7c1423094032c7f4a2fbea57ef3f0037ff2cb7e354ccacff80bee87a4b77aff6cda
|
7
|
+
data.tar.gz: ad5160848a55cc8353856d0ad556d6e14dbac20f62f29c71886fa67d29334412d892fcdf070e0d3ec6ea4541f1c58efefff9e5371c085968206e80ecfded7d2c
|
@@ -30,6 +30,10 @@ module Middleman
|
|
30
30
|
|
31
31
|
def evaluate(scope, locals, &block)
|
32
32
|
options = {}.merge!(@options).merge!(filename: eval_file, line: line, context: @context || scope)
|
33
|
+
if options.include?(:outvar)
|
34
|
+
options[:buffer] = options.delete(:outvar)
|
35
|
+
options[:save_buffer] = true
|
36
|
+
end
|
33
37
|
@engine = ::Haml::Engine.new(data, options)
|
34
38
|
output = @engine.render(scope, locals, &block)
|
35
39
|
|
@@ -44,6 +48,9 @@ module Middleman
|
|
44
48
|
|
45
49
|
::Haml::Options.defaults[:context] = nil
|
46
50
|
::Haml::Options.send :attr_accessor, :context
|
51
|
+
if defined?(::Haml::TempleEngine)
|
52
|
+
::Haml::TempleEngine.define_options context: nil
|
53
|
+
end
|
47
54
|
|
48
55
|
# rubocop:disable NestedMethodDefinition
|
49
56
|
[::Haml::Filters::Sass, ::Haml::Filters::Scss, ::Haml::Filters::Markdown].each do |f|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Reynolds
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-01-
|
13
|
+
date: 2019-01-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|