Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func GetData ¶
GetData obtains the plugin data from the context. The context has to be a plugin context.
type Plugin ¶
type Plugin interface { Initialize() *template.Template // Called only once during plugin initialization. Prepare(d *Data) interface{} // Prepare is called for each plugin context. Settings should be parsed... Render(c *template.Context, d *Data) interface{} // Render is called during each plugin template rendering request. Template render data can be returned. }
Click to show internal directories.
Click to hide internal directories.