base tabler

This commit is contained in:
JACS 2026-05-01 12:46:11 -05:00
parent ac2cfa9fe1
commit 0f84beacf1
1432 changed files with 28760 additions and 1 deletions

28
controllers/tablerbase.go Normal file
View file

@ -0,0 +1,28 @@
// Copyright (c) 2026 Jose Cely <me@jacs.guru>
// Use of this source code is governed by MIT-style
// license that can be found in the LICENSE file.
package controllers
import (
"html/template"
"git.smarteching.com/goffee/core"
)
// TablerDemo1 renders a Tabler-themed demo page
func TablerDemo1(c *core.Context) *core.Response {
// first, include compoment
type templateData struct {
Content template.HTML
}
// Build the template data
data := templateData{
// The main page content (rendered HTML)
Content: template.HTML("<h2>Hola mundo</h2>"),
}
return c.Response.Template("tabler_demo.html", data)
}