Documentation
¶
Overview ¶
Package fs provides a read-only template store backed by an fs.FS, suitable for use with embed.FS or any other fs.FS implementation. For mutable storage, wrap this in a composite.Store with a writable provider such as memory.Store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store reads templates from an fs.FS. Register and RegisterFS return template.ErrReadOnly — use composite.Store for mutability.
func (*Store) Get ¶
Get returns the raw template content by name. Returns template.ErrTemplateNotFound if the file is not present.
Click to show internal directories.
Click to hide internal directories.