mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Rename view.cr to templates.cr and move it under helpers
This commit is contained in:
		
							parent
							
								
									a6678f6622
								
							
						
					
					
						commit
						ad571db682
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -1,7 +1,6 @@ | ||||||
| # This file contains the built-in view templates that Kemal uses. | # This file contains the built-in view templates that Kemal uses. | ||||||
| # Currently it contains templates for 404 and 500 error codes. | # Currently it contains templates for 404 and 500 error codes. | ||||||
| 
 | 
 | ||||||
| # Template for 404 Not Found |  | ||||||
| def render_404 | def render_404 | ||||||
|   template = <<-HTML |   template = <<-HTML | ||||||
|       <!DOCTYPE html> |       <!DOCTYPE html> | ||||||
|  | @ -21,7 +20,6 @@ def render_404 | ||||||
|   HTML |   HTML | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| # Template for 500 Internal Server Error |  | ||||||
| def render_500(context, backtrace, verbosity) | def render_500(context, backtrace, verbosity) | ||||||
|   message = if verbosity |   message = if verbosity | ||||||
|               "<pre>#{backtrace}</pre>" |               "<pre>#{backtrace}</pre>" | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue