mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-10 09:44:39 -04:00
Mention Go variable naming rules
This commit is contained in:
parent
11ce3a59c2
commit
9829e28626
@ -114,6 +114,8 @@ all other pages:
|
|||||||
Var is {{ $var }}
|
Var is {{ $var }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Variable names must conform to Go's naming rules for [identifiers][identifier].
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
Go Templates only ship with a few basic functions but also provide a mechanism for applications to extend the original set.
|
Go Templates only ship with a few basic functions but also provide a mechanism for applications to extend the original set.
|
||||||
@ -660,6 +662,7 @@ If you restrict front matter to the TOML format, and omit quotation marks surrou
|
|||||||
[dotdoc]: https://golang.org/pkg/text/template/#hdr-Variables
|
[dotdoc]: https://golang.org/pkg/text/template/#hdr-Variables
|
||||||
[front matter]: /content-management/front-matter
|
[front matter]: /content-management/front-matter
|
||||||
[functions]: /functions
|
[functions]: /functions
|
||||||
|
[identifier]: /getting-started/glossary/#identifier
|
||||||
[internal templates]: /templates/internal
|
[internal templates]: /templates/internal
|
||||||
[math]: /functions/math
|
[math]: /functions/math
|
||||||
[pagevars]: /variables/page
|
[pagevars]: /variables/page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user