Skip to content

Commit

Permalink
fix Haml 6 integration
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed Jan 18, 2024
1 parent dce0a22 commit 140fd7b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/middleman-syntax/haml_monkey_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ def render(code)
module Haml
class Filters
class Code < Base
extend HamlMonkeyPatch
include HamlMonkeyPatch

def compile(node)
[:static, render(node.value[:text])]
end
end

register :code, Code
end
end
else
Expand Down

0 comments on commit 140fd7b

Please sign in to comment.