28 lines
No EOL
625 B
Go
28 lines
No EOL
625 B
Go
// 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)
|
|
} |