summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ponzu/contentType.tmpl5
1 files changed, 3 insertions, 2 deletions
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