Statics
Pages
In app
component system, a very special kind of component
is a page
. It is such that its rendered HTML satisfies the following:
its most external HTML tag is
<html>
;the
<html>
block contains blocks<head>
and<body>
;<head>
is not inside<block>
and vice-versa.
Thus, in sum, a page
is a component
that, after being rendered, produces an HTML in the following format:
...
<html>
...
<head> ... </head>
<body> ... </body>
...
</html>
...
There is the type Page
of all page
s. It is actually an extension of Component
to include two entries:
assets_dir
: a directory or a list of directories from which assets are collectedauto_style
: if<style>
block will be automatically generated or not
In the same way as
Page
is an extension ofComponent
, we haveStaticPage
, which is an extension ofStatic
.