haml 6.0.9-java → 6.0.10-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf3024cbd0b46fe984ac29b35e28ee37e11e6a2796c7546f752a3a7d57d2cdce
4
- data.tar.gz: 6370e9ca1ccf508cd364f20d0a14fe04fe10b0348f7632d8ac576c935e253fea
3
+ metadata.gz: 44554f3aa7da10cf2fe950258a176343ad27560a0569b722543640e81eb61fb7
4
+ data.tar.gz: 9f43b1fcb6441016d93dbb0f2800d2bb54e645882468e20f2d69a1fefdc41e20
5
5
  SHA512:
6
- metadata.gz: bfeae6a7b54f63d8d6bdd614e382d9203b6eea8d5885a1f532919ee4008219db7777858dc911b0409d9426e7e6fd83fb4e9e39b49e0562842440d5af0a346553
7
- data.tar.gz: 6a0cc2a0ccbac7277837ecd62c6274127006ccd3509fca28dff380d8d3546ac785a7876a4a3c498c524e048f36941fcfe5a69597d65c8971a3826f1f52e07ec9
6
+ metadata.gz: 808daff72a629634ff341be63fd4dde6a99c3e782004d9118a53f043cfd358fd1cf54ab3319780e9e247f38288b5be5b0cd551a1f0fbbd070360858c5823dc54
7
+ data.tar.gz: 3c4789806d1386544a5fb17e56b396ce77da1f65582a824dde1c2b2c9940c7fd50e64dcbeadccfdfbdc54dc7f3c2f344b1fe3b1474b75d86e1bbaa88011e18f4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Haml Changelog
2
2
 
3
+ ## 6.0.10
4
+
5
+ * Evaluate :erb filter in the template context
6
+
3
7
  ## 6.0.9
4
8
 
5
9
  * Support sass-embedded [#1112](https://github.com/haml/haml/issues/1112)
@@ -3,7 +3,7 @@ module Haml
3
3
  class Filters
4
4
  class Erb < TiltBase
5
5
  def compile(node)
6
- compile_with_tilt(node, 'erb')
6
+ precompiled_with_tilt(node, 'erb')
7
7
  end
8
8
  end
9
9
  end
@@ -21,6 +21,12 @@ module Haml
21
21
 
22
22
  private
23
23
 
24
+ # TODO: support interpolation
25
+ def precompiled_with_tilt(node, name)
26
+ src = ::Tilt["t.#{name}"].new { node.value[:text] }.send(:precompiled, {}).first
27
+ [:dynamic, src]
28
+ end
29
+
24
30
  def compile_with_tilt(node, name, indent_width: 0)
25
31
  if ::Haml::Util.contains_interpolation?(node.value[:text])
26
32
  dynamic_compile(node, name, indent_width: indent_width)
data/lib/haml/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Haml
3
- VERSION = '6.0.9'
3
+ VERSION = '6.0.10'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.9
4
+ version: 6.0.10
5
5
  platform: java
6
6
  authors:
7
7
  - Natalie Weizenbaum
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2022-11-08 00:00:00.000000000 Z
15
+ date: 2022-11-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  requirement: !ruby/object:Gem::Requirement