From 3791fadda7b761ffba38c567da29e2e71acd1dfb Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 19 Dec 2016 11:19:53 -0800 Subject: [addons] Creating foundation for plugin-like system "Addons" (#24) * adding addons dir and sample addon which enables the use of a new input element in forms for referencing other content. "addons" is a conceptual plugin-like feature, similar to wordpress "plugins" dir, but not as sophisticated --- addons/reference/reference.go | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 addons/reference/reference.go (limited to 'addons') diff --git a/addons/reference/reference.go b/addons/reference/reference.go new file mode 100644 index 0000000..78e46eb --- /dev/null +++ b/addons/reference/reference.go @@ -0,0 +1,54 @@ +// Package reference is a Ponzu addon to enable content editors to create +// references to other content types which are stored as query strings within +// the referencer's content DB +package reference + +import ( + "bytes" + "encoding/json" + "fmt" + "html/template" + "log" + + "github.com/bosssauce/ponzu/management/editor" + "github.com/bosssauce/ponzu/system/addon" +) + +// Select returns the []byte of a