Skip to content

Commit 140fd7b

Browse files
committed
fix Haml 6 integration
1 parent dce0a22 commit 140fd7b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/middleman-syntax/haml_monkey_patch.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ def render(code)
2121
module Haml
2222
class Filters
2323
class Code < Base
24-
extend HamlMonkeyPatch
24+
include HamlMonkeyPatch
25+
26+
def compile(node)
27+
[:static, render(node.value[:text])]
28+
end
2529
end
30+
31+
register :code, Code
2632
end
2733
end
2834
else

0 commit comments

Comments
 (0)