Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// Path of the recipe directory
Path string
// Template to be used for rendering a recipe page. Each recipe page uses the
// Page struct for its data.
RecipePageTemplate *template.Template
// Template to be used for rendering a recipe list page (i.e. a directory).
RecipeListTemplate *template.Template
}
Handler is a HTTP handler for serving a recipes directory.
Click to show internal directories.
Click to hide internal directories.