From fc818bb2ca6cf55997d180d48818a61251c7e4ce Mon Sep 17 00:00:00 2001 From: Franklin Brauning Date: Mon, 18 Mar 2019 21:34:55 -0300 Subject: [PATCH] add plugin prototypes for building a plugin with nitrogen_dev.erl (related commit in nitrogen_core) --- .../common/site/.prototypes/plugin.app.src | 11 +++++++++++ rel/overlay/common/site/.prototypes/plugin.tgz | Bin 0 -> 717 bytes .../common/site/.prototypes/plugin_page.erl | 17 +++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 rel/overlay/common/site/.prototypes/plugin.app.src create mode 100644 rel/overlay/common/site/.prototypes/plugin.tgz create mode 100644 rel/overlay/common/site/.prototypes/plugin_page.erl diff --git a/rel/overlay/common/site/.prototypes/plugin.app.src b/rel/overlay/common/site/.prototypes/plugin.app.src new file mode 100644 index 00000000..ce391829 --- /dev/null +++ b/rel/overlay/common/site/.prototypes/plugin.app.src @@ -0,0 +1,11 @@ +{application, [[[NAME]]], + [ + {description, "A sample plugin for the Nitrogen Web Framework"}, + {vsn, ""}, + {registered, []}, + {applications, [ + kernel, + stdlib + ]}, + {env, []} + ]}. diff --git a/rel/overlay/common/site/.prototypes/plugin.tgz b/rel/overlay/common/site/.prototypes/plugin.tgz new file mode 100644 index 0000000000000000000000000000000000000000..8b4b327155d7d0290909a5ed70309e4b4c1baf74 GIT binary patch literal 717 zcmV;;0y6y{iwFR$vxHm#1MOH_Z__Xs?Q8QZyzF7A)Qj!Ji8RL0K$Sp(B0=BK6lJNq z1-VJ(qyseVzhmbzlF@A~GzN7(s^r-H{MqgCaqL4cqIlG47f`?>M3%@SFs~!W$;%QQ zWIGOmEp1<{v@q2;w0U zHLUqpfr@`l!-UV$;T2~)A43xC7JRSeAG==3KlX?q9wM7yw*%nLXR-#*oc}>Vyp;xv zC8IuNbV1{+4{lzK-;Y0xCsY6R+2^rUw)@SnUf<}>Bg$r|dcekQZ)h0zvIb!mC9zC; z_GbF-^-?lf1ql_n)G#)P5>N0v%0e_6A z^q=ql7~3`!8-Od{|Dr%z|0=NL(e;0H{&OHE^8DvP{r*>ioPY5bWKr1KGT5Gfj69_I zSAjbJVVbtG1~xzci+x|Vi_(Lde-)_nA1#7Q+QJgp>i%y_{zXOeuLO1ezqTX)?euTw z=RX&@ntv5Yd3*2u3S0RSznAU zr*lTbYy|uAIi68ojW5+08r^ea`pMc9QyEXT&@7v_`zSO|CjiIKq=K?luGi0bSV_u_{utL%%>19C@QHXIyIxE #template { file="./site/templates/bare.html" }. + +title() -> "Testing plugin [[[NAME]]]!". + +body() -> + wf:wire(#sample_action{}), + [ + "You should see some more content and an alert: ", + #sample_element{}, "" + ].