Layouts
filter_body_tags
filter_body_tags(tags)
Given a list of tags, only list the ones that belong in body.
Source code in src/air/layouts.py
7 8 9 |
|
filter_head_tags
filter_head_tags(tags)
Given a list of tags, only list the ones that belong in head.
Source code in src/air/layouts.py
12 13 14 |
|
picocss
picocss(*children, htmx=True, **kwargs)
Renders the basic layout with PicoCSS and HTMX for quick prototyping
- At the top level HTML head tags are put in the
<head>
tag - Otherwise everything is put in the
<body>
- HTMX is the default, change with the
htmx
keyword argument
PicoCSS
is a quick prototyping tool. It isn't designed to be extensible.
Rather the pico
layout function makes it easy to roll out quick demonstrations and proofs-of-concept.
For more advanced layouts like Eidos or a full-fledged PicoCSS implementation,
you'll have to create your own layouts.
Source code in src/air/layouts.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
mvpcss
mvpcss(*children, htmx=True, **kwargs)
Renders the basic layout with MVP.css and HTMX for quick prototyping
- At the top level HTML head tags are put in the
<head>
tag - Otherwise everything is put in the
<body>
- HTMX is the default, change with the
htmx
keyword argument
MVP.css
is a quick prototyping tool. It isn't designed to be extensible.
Rather the mvpcss
layout function makes it easy to roll out quick demonstrations and proofs-of-concept.
For more advanced layouts like Eidos or a full-fledged PicoCSS implementation,
you'll have to create your own layouts.
Source code in src/air/layouts.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|