lib/express_templates/components/capabilities/parenting.rb in express_templates-0.3.1 vs lib/express_templates/components/capabilities/parenting.rb in express_templates-0.3.2
- old
+ new
@@ -43,10 +43,10 @@
@children =children
end
def compile
null_wrapped_children = "null_wrap { #{compile_children} }"
- wrap_children_src = self.class[:markup].source.gsub(/\W_yield\W/, null_wrapped_children)
+ wrap_children_src = self.class[:markup].source.gsub(/(\s)_yield(\s)/, '\1'+null_wrapped_children+'\2')
_compile_fragment(Proc.from_source(wrap_children_src))
end
def compile_children
compiled_children = nil
\ No newline at end of file