Documentation ¶
Overview ¶
Package sdtemplate 文本模板工具
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HtmlLoader ¶
type HtmlLoader struct {
// contains filtered or unexported fields
}
func NewHtmlLoader ¶
func NewHtmlLoader(fsys fs.FS, opts *HtmlLoaderOptions) (*HtmlLoader, error)
type HtmlLoaderOptions ¶
type TemplateExecutor ¶
type TemplateExecutor interface { Exec(template string, data any) (string, error) ExecDef(template string, data any, def string) string }
var ( Text TemplateExecutor = textExecutor{} Html TemplateExecutor = htmlExecutor{} )
Click to show internal directories.
Click to hide internal directories.