Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JamieS/381628 to your computer and use it in GitHub Desktop.
Save JamieS/381628 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