Nitlanguage.org
  • Nitdoc
  • popcorn
  • examples
  • middlewares
  • example_html_error_handler
  • HtmlErrorTemplate
  • defaultinit

init defaultinit(status: Int, message: nullable String)

popcorn :: HtmlErrorTemplate :: defaultinit

  • Doc
  • Linearization

Summary

  • Property definitions

  • popcorn$HtmlErrorTemplate$defaultinit

Property definitions

popcorn $ HtmlErrorTemplate :: defaultinit
class HtmlErrorTemplate
	super Template

	var status: Int
	var message: nullable String

	redef fun rendering do add """
		<!DOCTYPE html>
		<html>
		<head>
			<meta charset="utf-8">
			<title>{{{message or else status}}}</title>
		</head>
		<body>
		<h1>{{{status}}} {{{message or else ""}}}</h1>
		</body>
		</html>"""
end
lib/popcorn/examples/middlewares/example_html_error_handler.nit:22,1--39,3
Nit standard library. Version .