Add shortcode IsNamedParams property
authorCameron Moore <moorereason@gmail.com>
Sat, 21 Nov 2015 00:59:54 +0000 (18:59 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 23 Nov 2015 16:17:18 +0000 (17:17 +0100)
commitfde47c5eb9435083cc492b8648517b374eb60c6b
treec587a2f5a77a976b982cb64e7feee7674e401fcf
parent3d09de891072985e6c59f899f09132a76d44f7cd
Add shortcode IsNamedParams property

It would be helpful to know whether a shortcode was called with positional or
named parameters.  This commit adds a boolean `IsNamedParams` property to the
`ShortcodeWithPage` struct.
hugolib/shortcode.go
hugolib/shortcode_test.go