Documentation
¶
Index ¶
- func Execute(w io.Writer, fmt string, data interface{}, opt ...Option) error
- func HTML(env string, nodes ...types.Node) (htmlTemplate.HTML, error)
- func Lite(env string, nodes ...types.Node) (htmlTemplate.HTML, error)
- func MD(env string, nodes ...types.Node) (string, error)
- func QwiklabsGitMD(env string, nodes ...types.Node) (string, error)
- func QwiklabsHTML(env string, nodes ...types.Node) (htmlTemplate.HTML, error)
- func QwiklabsMD(env string, nodes ...types.Node) (string, error)
- func WriteHTML(w io.Writer, env string, nodes ...types.Node) error
- func WriteLite(w io.Writer, env string, nodes ...types.Node) error
- func WriteMD(w io.Writer, env string, nodes ...types.Node) error
- func WriteQwiklabsGitMD(w io.Writer, env string, nodes ...types.Node) error
- func WriteQwiklabsHTML(w io.Writer, env string, nodes ...types.Node) error
- func WriteQwiklabsMD(w io.Writer, env string, nodes ...types.Node) error
- type Context
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
Execute renders a template of the fmt format into w.
The fmt argument can also be a path to a local file.
Template execution context data is expected to be of type *Context but can be an arbitrary struct, as long as it contains at least Context's fields for the built-in templates to be successfully executed.
func QwiklabsGitMD ¶
QwiklabsGitMD renders nodes as markdown for the target env.
func QwiklabsHTML ¶
QwiklabsHTML renders nodes as the markup for the target env.
func QwiklabsMD ¶
QwiklabsMD renders nodes as markdown for the target env.
func WriteQwiklabsGitMD ¶
WriteQwiklabsGitMD does the same as MD but outputs rendered markup to w.
func WriteQwiklabsHTML ¶
WriteQwiklabsHTML does the same as Qwiklabs but outputs rendered markup to w.
Types ¶
Click to show internal directories.
Click to hide internal directories.