hugo/tpl/tplimpl/embedded
Bjørn Erik Pedersen 329e88db1f Support typed bool, int and float in shortcode params
This means that you now can do:

    {{< vidur 9KvBeKu false true 32 3.14 >}}

And the boolean and numeric values will be converted to `bool`, `int` and `float64`.

If you want these to be  strings, they must be quoted:

    {{< vidur 9KvBeKu "false" "true" "32" "3.14" >}}

Fixes #6371
2019-09-29 23:22:41 +02:00
..
generate all: Apply staticcheck recommendations 2019-03-24 16:14:51 +01:00
templates Support typed bool, int and float in shortcode params 2019-09-29 23:22:41 +02:00
.gitattributes tpl/tplimpl: Make the autogenerated templates collapsed in PRs 2018-08-23 22:03:43 +02:00
README.md tpl: Fix golint godoc issues 2018-09-07 08:25:51 +02:00
templates.autogen.go Support typed bool, int and float in shortcode params 2019-09-29 23:22:41 +02:00

Build Templates

If you add or modify any template in the templates folder, you also need to run mage generate to get the Go code in synch.