summaryrefslogtreecommitdiff
path: root/cmd/ponzu/templates/gen-input.tmpl
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-01 11:01:42 -0700
committerSteve Manuel <nilslice@gmail.com>2017-04-01 11:01:42 -0700
commit3b91d4be44b7e7814494a0a58e6491d4c5983dbe (patch)
tree88e176ba9019630671eaecf218b365b496337b85 /cmd/ponzu/templates/gen-input.tmpl
parentc78e6d7adec86a7799f9143f021784635f7665a2 (diff)
adding initial cases to generate input types for field views from command line
Diffstat (limited to 'cmd/ponzu/templates/gen-input.tmpl')
-rw-r--r--cmd/ponzu/templates/gen-input.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/ponzu/templates/gen-input.tmpl b/cmd/ponzu/templates/gen-input.tmpl
new file mode 100644
index 0000000..8bea12a
--- /dev/null
+++ b/cmd/ponzu/templates/gen-input.tmpl
@@ -0,0 +1,5 @@
+View: editor.Input("{{ .Name }}", {{ .Initial }}, map[string]string{
+ "label": "{{ .Name }}",
+ "type": "text",
+ "placeholder": "Enter the {{ .Name }} here",
+}), \ No newline at end of file