Skip to content

Commit

Permalink
Use the alternate comment syntax for hamlc
Browse files Browse the repository at this point in the history
I think this will work?
  • Loading branch information
brentd committed Oct 18, 2015
1 parent 551972f commit 4c050c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xray-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def self.augment_template(source, path)
return source
end
# skim doesn't allow html comments, so use skim's comment syntax if it's skim
if path =~ /\.(skim)(\.|$)/
if path =~ /\.(skim|hamlc)(\.|$)/
augmented = "/!XRAY START #{id} #{path}\n#{source}\n/!XRAY END #{id}"
else
augmented = "<!--XRAY START #{id} #{path}-->\n#{source}\n<!--XRAY END #{id}-->"
Expand Down

0 comments on commit 4c050c7

Please sign in to comment.