nanoc-template
nanoc-template copied to clipboard
Concatenation filter doesn't work for me
concatenation filter doesn't work for me when adding files relative to the current directory, until I modified the regex
def run(content, args = {})
content.gsub(%r{^\s*(?:(?://|#) require |@import url)\(?([a-zA-Z0-9_\-\/\.]+)(?:\);)?$}) do |m|
load_file($1) || m
end
end
excaping / in a-zA-Z0-9_-/.
Never noticed it before. Maybe a Ruby version issue?
I would gladly take pull request for it.