package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Jun 23, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Namespace struct {
}
Namespace defines the methods for media items to be used
as template functions.
Creates a new media Namespace
func (ns *Namespace) Find(i interface{}) interface{}
Find
Obtains the media by ID and returns a domain.Media type
or nil if not found or the ID parameter failed to be
parsed.
Example:
{{ $image := media 10 }}
{{ $image.url }}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.