foam experiments

This commit is contained in:
Chris Wanstrath 2025-11-05 16:11:46 -08:00
commit 856060e913
3 changed files with 31 additions and 0 deletions

19
today/form.sh Normal file
View 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
View File

@ -0,0 +1,3 @@
h1 'Today\'s Agenda'
p Cool stuff.
a href=/form Form Test

9
today/layout.sh Normal file
View 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