Documentation ¶
Index ¶
Constants ¶
View Source
const ( OfKey = "contentOf" ForKey = "contentFor" )
Keys to be used in templates for the functions in this package.
Variables ¶
This section is empty.
Functions ¶
func ContentFor ¶
func ContentFor(name string, help hctx.HelperContext)
ContentFor stores a block of templating code to be re-used later in the template via the contentOf helper. An optional map of values can be passed to contentOf, which are made available to the contentFor block.
<% contentFor("buttons") { %> <button>hi</button> <% } %>
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.