forked from nitrogen/nitrogen_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nitrogen#108 from fbrau/master
this merge add plugin templates in the .prototypes directory
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{application, [[[NAME]]], | ||
[ | ||
{description, "A sample plugin for the Nitrogen Web Framework"}, | ||
{vsn, ""}, | ||
{registered, []}, | ||
{applications, [ | ||
kernel, | ||
stdlib | ||
]}, | ||
{env, []} | ||
]}. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
%% -*- mode: nitrogen -*- | ||
%% vim: ts=4 sw=4 et | ||
-module ([[[NAME]]]). | ||
-compile(export_all). | ||
-include_lib("nitrogen_core/include/wf.hrl"). | ||
-include("records.hrl"). | ||
|
||
main() -> #template { file="./site/templates/bare.html" }. | ||
|
||
title() -> "Testing plugin [[[NAME]]]!". | ||
|
||
body() -> | ||
wf:wire(#sample_action{}), | ||
[ | ||
"You should see some more content and an alert: <b>", | ||
#sample_element{}, "</b>" | ||
]. |