Documentation
¶
Overview ¶
Command hello is a minimal burrow application that serves a single "Hello, World!" page with Tailwind v4 styling and i18n support.
This example demonstrates the core concepts of a burrow app in a flat layout — one Go file, one templates/ directory, one static/ directory, one tailwind.css:
- Creating a server with contrib apps (staticfiles, htmx)
- Defining a custom app that ships its own templates and embeds its own static CSS
- Configuring the CLI with urfave/cli for flags like --host, --port, etc.
Translations are provided via burrow's built-in `t` template function.
Run it (mise builds the Tailwind CSS first, then starts the server):
mise run example-hello
Then open http://localhost:8080 in your browser.
Click to show internal directories.
Click to hide internal directories.