From 140fd7bac0eace3313bdf9a5f222c290c8e7bf79 Mon Sep 17 00:00:00 2001 From: Marc Anguera Insa Date: Thu, 18 Jan 2024 16:54:29 +0100 Subject: [PATCH] fix Haml 6 integration --- lib/middleman-syntax/haml_monkey_patch.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/middleman-syntax/haml_monkey_patch.rb b/lib/middleman-syntax/haml_monkey_patch.rb index 5e0bea8..ccc6de2 100644 --- a/lib/middleman-syntax/haml_monkey_patch.rb +++ b/lib/middleman-syntax/haml_monkey_patch.rb @@ -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