feat: replace text/template with templ and refactor code

This commit is contained in:
rramiachraf
2024-03-04 14:59:47 +01:00
parent 5390a2878d
commit e2d5ef044b
43 changed files with 836 additions and 851 deletions

15
views/home.templ Normal file
View File

@ -0,0 +1,15 @@
package views
templ HomePage() {
@layout("dumb") {
<div id="home">
<div>
<h1>Welcome to dumb</h1>
<p>An alternative frontend for genius.com</p>
</div>
<form method="GET" action="/search">
<input type="text" name="q" id="search-input" placeholder="Search..."/>
</form>
</div>
}
}