Add debugging steps for no variables defined

This commit is contained in:
Daniel Compton 2016-03-12 21:44:50 +13:00
parent 0ab4162413
commit 153dccc0e8

View file

@ -54,3 +54,17 @@ you're looping through look like?
{{ printf "%#v" . }}
{{ end }}
```
### Why do I have no variables defined?
Check that you are passing variables in the `partial` function. For example
```
{{ partial "header" }}
```
will render the header partial, but the header partial will not have access to any variables. You need to pass variables explicitly. For example:
```
{{ partial "header" . }}
```