Rename view.cr to templates.cr and move it under helpers

This commit is contained in:
Sdogruyol 2016-08-13 17:43:18 +03:00
parent a6678f6622
commit ad571db682
1 changed files with 0 additions and 2 deletions

View File

@ -1,7 +1,6 @@
# This file contains the built-in view templates that Kemal uses.
# Currently it contains templates for 404 and 500 error codes.
# Template for 404 Not Found
def render_404
template = <<-HTML
<!DOCTYPE html>
@ -21,7 +20,6 @@ def render_404
HTML
end
# Template for 500 Internal Server Error
def render_500(context, backtrace, verbosity)
message = if verbosity
"<pre>#{backtrace}</pre>"