From 40b5cfe2289b179c511a6c73757bb64228f0bc82 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 6 Dec 2016 02:16:29 -0800 Subject: cleanup template, move ContentName into base Item as String on Identifiable interface, also makes Item implement Stringer, useful in fmt funcs --- cmd/ponzu/contentType.tmpl | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cmd') 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 } -- cgit v1.2.3