package
0.0.0-20160914140844-13f918f98fbc
Repository: https://github.com/hailooss/go-hailo-lib.git
Documentation: pkg.go.dev
# Functions
ExtractCurrency extracts the currency isocode from various locations in the supplied Context, and defaults to 'GBP'.
ExtractTimezone extracts the time-zone isocode from various location in the supplied Context, and defaults to 'Europe/London'.
NewTemplating creates a Templating instance - sets templatesDir and initializes template cache.
PrepareFilters a FilterPreparation function - prepares filters before rendering the template.
# Structs
Templating wraps up a set of templates (TemplateSet) with a function to find the template files, and function to prepare the filters.
# Interfaces
TemplateContext an interface to serve as a generic type passed to the TemplatePathFactory - extend later?.
TemplateInfoSource is a source of data to be used in rendering using a template.
TemplateInfoSourceDetail contains details for use with rendering.
# Type aliases
AssetInfo defines the sugnatire of functions used to find the template files.
FilterPreparation defines the signature of functions used to prepare the filters.
TemplatePathFactory defines the signature of a function to get the paths to the templates.