From e187d5ee6354acf40ac8178b0a8a631e80e35e8e Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sun, 18 Dec 2016 15:06:25 -0800 Subject: moving item and types into system/item package and updating throughout codebase --- cmd/ponzu/contentType.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/ponzu/contentType.tmpl b/cmd/ponzu/contentType.tmpl index af60e57..1804555 100644 --- a/cmd/ponzu/contentType.tmpl +++ b/cmd/ponzu/contentType.tmpl @@ -4,10 +4,11 @@ import ( "fmt" "github.com/bosssauce/ponzu/management/editor" + "github.com/bosssauce/ponzu/system/item" ) type {{ .Name }} struct { - Item + item.Item editor editor.Editor {{ range .Fields }}{{ .Name }} {{ .TypeName }} `json:"{{ .JSONName }}"` @@ -38,7 +39,7 @@ func ({{ .Initial }} *{{ .Name }}) MarshalEditor() ([]byte, error) { } func init() { - Types["{{ .Name }}"] = func() interface{} { return new({{ .Name }}) } + item.Types["{{ .Name }}"] = func() interface{} { return new({{ .Name }}) } } // Editor is a buffer of bytes for the Form function to write input views -- cgit v1.2.3