docs: Add underscore issue to FAQ

This commit is contained in:
Donald Bakong
2020-07-15 21:09:49 -04:00
committed by James Shubin
parent df9e2e853f
commit 5bc985663c
2 changed files with 11 additions and 0 deletions

View File

@@ -254,6 +254,13 @@ prevent masking an error for a situation when you expected a file to already be
at that location. It also turns out to simplify the internals significantly, and
remove an ambiguous scenario with the reversable file resource.
### Why do function names inside of templates include underscores?
The golang template library which we use to implement the template() function
doesn't support the dot notation, so we import all our normal functions, and
just replace dots with underscores. As an example, the standard `datetime.print`
function is shown within mcl scripts as datetime_print after being imported.
### On startup `mgmt` hangs after: `etcd: server: starting...`.
If you get an error message similar to: