Documentation ¶
Overview ¶
Package templates implements template execution for files to be dynamically rendered for the client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(c middleware.Controller) (middleware.Middleware, error)
New constructs a new Templates middleware instance.
Types ¶
type Rule ¶
Rule represents a template rule. A template will only execute with this rule if the request path matches the Path specified and requests a resource with one of the extensions specified.
Click to show internal directories.
Click to hide internal directories.