Documentation
¶
Overview ¶
Package templates provides embedded HTML templates for the Omnom web application.
This package embeds Go template files into the compiled binary. Templates are used to render HTML pages for the web interface, including:
- Page layouts and partials
- Bookmark lists and detail views
- Feed readers
- User settings
- Authentication pages
- Email templates (HTML and text)
Templates use Go's html/template package for automatic HTML escaping and security. They support template inheritance through blocks and includes.
The template system integrates with:
- Localization for multi-language support
- CSRF token injection
- Flash message display
- User session data
The FS variable contains all template files and can be parsed by the template engine at startup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FS embed.FS
FS contains all embedded template files.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.