Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_CONTENT = `` /* 291-byte string literal not displayed */
DEFAULT_CONTENT the default content for the template
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomContentReader ¶
CustomContentReader get the content of a template from a custom configured location
type Service ¶
type Service interface { RenderCustomContent(data TemplateData) (string, error) RenderDefaultContent(data TemplateData) string RenderMetaContent(parameters []string) string RenderRelationLink(adrTitle string, adrFilename string, relationTitle string) string }
Service service that renders the template content
func CreateService ¶
func CreateService( customTemplateContentReader CustomContentReader, ) Service
CreateService creates a Service instance
type TemplateData ¶
TemplateData represents the data that will be render by the Service
Click to show internal directories.
Click to hide internal directories.