From 09312721db0713479c6c99a7a495be6fd8212871 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sat, 17 Dec 2016 00:41:08 -0800 Subject: 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 | 90 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 addons/reference/reference.go (limited to 'addons/reference/reference.go') diff --git a/addons/reference/reference.go b/addons/reference/reference.go new file mode 100644 index 0000000..2681146 --- /dev/null +++ b/addons/reference/reference.go @@ -0,0 +1,90 @@ +package reference + +import ( + "encoding/json" + "fmt" + "log" + + "github.com/bosssauce/ponzu/content" + "github.com/bosssauce/ponzu/management/editor" + "github.com/bosssauce/ponzu/system/db" +) + +// New returns the []byte of a