Skip to content

Commit

Permalink
Support sass-embedded (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme authored Nov 8, 2022
1 parent aea5ae1 commit ae5d2bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/hamlit/filters/tilt_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ class TiltBase < Base
def self.render(name, source, indent_width: 0)
text = ::Tilt["t.#{name}"].new { source }.render
return text if indent_width == 0
text.gsub!(/^/, ' ' * indent_width)
if text.frozen?
text.gsub(/^/, ' ' * indent_width)
else
text.gsub!(/^/, ' ' * indent_width)
end
end

def explicit_require?(needed_registration)
Expand Down

0 comments on commit ae5d2bf

Please sign in to comment.