summaryrefslogtreecommitdiff
path: root/cmd/ponzu/templates/gen-content.tmpl
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-05-07 20:15:06 -0700
committerGitHub <noreply@github.com>2017-05-07 20:15:06 -0700
commitde04f5b8698fd5ae4ff4ce3a7a42ebb16be53c70 (patch)
tree69d14ca08f85042ae1f41dfbf755038c666e59b9 /cmd/ponzu/templates/gen-content.tmpl
parentbf9bc29974c11ff2a636692952446b524dd5b643 (diff)
parentdba96b5b097e87ce1ac4d061667fcd68bfc4beab (diff)
Merge pull request #140 from ponzu-cms/ponzu-dev
[cli] adding reference type and auto-repeater generate syntax
Diffstat (limited to 'cmd/ponzu/templates/gen-content.tmpl')
-rw-r--r--cmd/ponzu/templates/gen-content.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/ponzu/templates/gen-content.tmpl b/cmd/ponzu/templates/gen-content.tmpl
index 2d92b88..78b5123 100644
--- a/cmd/ponzu/templates/gen-content.tmpl
+++ b/cmd/ponzu/templates/gen-content.tmpl
@@ -2,7 +2,9 @@ package content
import (
"fmt"
-
+ {{ if .HasReferences }}
+ "github.com/bosssauce/reference"
+ {{ end }}
"github.com/ponzu-cms/ponzu/management/editor"
"github.com/ponzu-cms/ponzu/system/item"
)