summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-06 02:16:29 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-06 02:16:29 -0800
commit40b5cfe2289b179c511a6c73757bb64228f0bc82 (patch)
tree47d28cef40b495cf3e52c65b27aa69ffe605a171 /cmd
parentd28d2b6a44bea1f269feadc2b773253a95649f52 (diff)
cleanup template, move ContentName into base Item as String on Identifiable interface, also makes Item implement Stringer, useful in fmt funcs
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ponzu/contentType.tmpl4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd/ponzu/contentType.tmpl b/cmd/ponzu/contentType.tmpl
index df582a0..af60e57 100644
--- a/cmd/ponzu/contentType.tmpl
+++ b/cmd/ponzu/contentType.tmpl
@@ -41,10 +41,6 @@ func init() {
Types["{{ .Name }}"] = func() interface{} { return new({{ .Name }}) }
}
-// ContentName is required to set the display name for a piece of content in the editor
-// Partially implements editor.Editable
-func ({{ .Initial }} *{{ .Name }}) ContentName() string { return fmt.Sprintf("{{ .Name }} - ID: %s", {{ .Initial }}.UniqueID()) }
-
// Editor is a buffer of bytes for the Form function to write input views
// partially implements editor.Editable
func ({{ .Initial }} *{{ .Name }}) Editor() *editor.Editor { return &{{ .Initial }}.editor }