Skip to content

Instantly share code, notes, and snippets.

@gterrill
Created April 9, 2010 01:07
Show Gist options
  • Save gterrill/360749 to your computer and use it in GitHub Desktop.
Save gterrill/360749 to your computer and use it in GitHub Desktop.
# put this in 'serve_file'
if File.exists?("#{template_path}/#{filename}.liquid")
filepath = "#{template_path}/#{filename}.liquid"
else
filepath = "#{template_path}/#{filename}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment