ref: 153dccc0e8c939fcbbb71afbb268817dbe704faa
parent: 0ab41624137654a6668e026f717da2a6f3fe7334
author: Daniel Compton <[email protected]>
date: Sat Mar 12 16:44:50 EST 2016
Add debugging steps for no variables defined
--- a/docs/content/templates/debugging.md
+++ b/docs/content/templates/debugging.md
@@ -54,3 +54,17 @@
{{ 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" . }}
+```