-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathstar_wars.py
33 lines (31 loc) · 931 Bytes
/
star_wars.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- coding: utf-8 -*-
from tempy.tags import *
from tempy.elements import *
character = Div(klass='chr')(
B()(Content('name')),
P()('height:', Content('height')),
P()('mass:', Content('mass')),
P()('hair_color:', Content('hair_color')),
P()('skin_color:', Content('skin_color')),
P()('eye_color:', Content('eye_color')),
P()('birth_year:', Content('birth_year')),
P()('gender:', Content('gender')),
P()('homeworld:', Content('homeworld')),
P()('created:', Content('created')),
P()('edited:', Content('edited')),
P()('url:', Content('url')),
)
page = Html()(
Head()(
Title()(
'Flaskr - SW'
)
),
body=Body()(
Div(klass='page')(
'All the Star Wars characters!',
Br(),
Content('characters', t_repr=character)
)
)
)