popcorn :: HtmlErrorTemplate :: message
popcorn :: HtmlErrorTemplate :: message=
popcorn :: HtmlErrorTemplate :: status
popcorn :: HtmlErrorTemplate :: status=
popcorn $ HtmlErrorTemplate :: SELF
Type of this instance, automatically specialized in every classpopcorn $ HtmlErrorTemplate :: rendering
Service used to render the content of the template.core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
template :: Template :: defaultinit
core :: Writable :: defaultinit
template :: Template :: is_frozen=
Is the template allowing more modification (add
)
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
popcorn :: HtmlErrorTemplate :: message
popcorn :: HtmlErrorTemplate :: message=
core :: Object :: output_class_name
Display class name on stdout (debug only).popcorn :: HtmlErrorTemplate :: status
popcorn :: HtmlErrorTemplate :: status=
core :: Writable :: write_to_bytes
Likewrite_to
but return a new Bytes (may be quite large)
core :: Writable :: write_to_file
Likewrite_to
but take care of creating the file
core :: Writable :: write_to_string
Likewrite_to
but return a new String (may be quite large).
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