Nitlanguage.org
  • Nitdoc
  • popcorn
  • popcorn
  • ErrorTpl
  • defaultinit

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

popcorn :: ErrorTpl :: defaultinit

  • Doc
  • Linearization

Summary

  • Property definitions

  • popcorn$ErrorTpl$defaultinit

Property definitions

popcorn $ ErrorTpl :: defaultinit
#
class ErrorTpl
	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/popcorn.nit:76,1--98,3
Nit standard library. Version .