moved html components as a child of bulma. They can be moved out of this project if needed

This commit is contained in:
James Tombleson 2024-07-13 10:34:59 -07:00
parent 58ca5b3546
commit 174516f34f
3 changed files with 28 additions and 2 deletions

View File

@ -1,4 +1,4 @@
package templhtml package html
templ Br(){ templ Br(){
<br/> <br/>

View File

@ -1,4 +1,4 @@
package templhtml package html
templ ALink(url, title string) { templ ALink(url, title string) {
<a href={ templ.SafeURL(url) }>{ title }</a> <a href={ templ.SafeURL(url) }>{ title }</a>

View File

@ -0,0 +1,26 @@
package html
templ Doctype() {
<!DOCTYPE html>
}
// Creates <html> that accepts children
templ New(lang string) {
<html lang={ lang }>
{ children... }
</html>
}
// Creates <head> that accepts children
templ NewHeader() {
<head>
{ children... }
</head>
}
// Creates <body> that accepts children
templ NewBody() {
<body>
{ children... }
</body>
}