app

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package app is the example-notes shell: it owns the project's layout templates, the homepage, the compiled Tailwind CSS bundle, and the brand logo. Following Pattern B (see docs/guide/tailwind.md), the shell lives in a single internal package so all embedded assets (templates, static, translations) sit next to the code that uses them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logo() template.HTML

Logo returns a static brand logo HTML for auth pages.

Types

type App

type App struct{}

App implements the shell app.

func New

func New() *App

New creates a new shell app.

func (*App) FuncMap

func (a *App) FuncMap() template.FuncMap

FuncMap returns template functions used by the layout templates.

func (*App) Name

func (a *App) Name() string

func (*App) NavItems

func (a *App) NavItems() []burrow.NavItem

func (*App) Routes

func (a *App) Routes(r chi.Router)

func (*App) StaticFS

func (a *App) StaticFS() (string, fs.FS)

StaticFS serves the embedded `static/` under the URL prefix `/static/app/`, mirroring how every Burrow contrib namespaces its assets (htmx → /static/htmx/..., admin → /static/admin/..., etc.).

func (*App) TemplateFS

func (a *App) TemplateFS() fs.FS

TemplateFS returns the embedded HTML template files.

func (*App) TranslationFS

func (a *App) TranslationFS() fs.FS

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL