foam experiments
This commit is contained in:
commit
856060e913
19
today/form.sh
Normal file
19
today/form.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
page-title = 'Form Test'
|
||||
|
||||
div margin='0 auto' width='50%':
|
||||
h2 color=blue page-title
|
||||
form method=POST action=/form:
|
||||
label for=name 'Name:'
|
||||
input type=text name=name placeholder='Your name' value=params.name
|
||||
br ; br
|
||||
label for=age 'Age:'
|
||||
select name=age:
|
||||
range 14 100 | list.reverse | list.map do i:
|
||||
option value=i i
|
||||
end
|
||||
end
|
||||
br ; br
|
||||
input type=submit
|
||||
input type=reset
|
||||
end
|
||||
end
|
||||
3
today/index.sh
Normal file
3
today/index.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
h1 'Today\'s Agenda'
|
||||
p Cool stuff.
|
||||
a href=/form Form Test
|
||||
9
today/layout.sh
Normal file
9
today/layout.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
html lang=en:
|
||||
head:
|
||||
meta charset='UTF-8'
|
||||
meta name='viewport' content='width=device-width, initial-scale=1.0'
|
||||
title page-title
|
||||
end
|
||||
|
||||
body content
|
||||
end
|
||||
Loading…
Reference in New Issue
Block a user