Skip to content

Instantly share code, notes, and snippets.

@gterrill
Created April 9, 2010 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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