Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (21 sloc) 0.607 kB
4d174b2 @mbbx6spp Nitrogen page handler Rebar template added.
authored
1 %%%' HEADER
2 %%% @author {{author_name}} <{{author_email}}>
3 %%% @copyright {{copyright_year}} {{author_name}}
4 %%% @doc Nitrogen page handler for {{description}}
5 %%% @end
7defeb2 @mbbx6spp Create consistent 'name' var for all templates
authored
6 -module({{app_name}}_{{name}}_page).
4d174b2 @mbbx6spp Nitrogen page handler Rebar template added.
authored
7 -author('{{author_name}} <{{author_email}}>').
8
9 -include_lib("nitrogen_core/include/wf.hrl").
10 -compile(export_all).
11 %%%.
12 %%%' NITROGEN CALLBACKS
7defeb2 @mbbx6spp Create consistent 'name' var for all templates
authored
13 main() -> #template { file="./templates/{{name}}.html" }.
4d174b2 @mbbx6spp Nitrogen page handler Rebar template added.
authored
14
15 %%%.
16 %%%' TEMPLATE CALLBACKS
17 title() ->
18 "{{description}}".
19
20 %%%.
21 %%%' EVENT CALLBACKS
22 event(_) -> ok.
23
24 %%%.
25 %%% vim: set filetype=erlang tabstop=2 foldmarker=%%%',%%%. foldmethod=marker:
Something went wrong with that request. Please try again.