diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-08-11 15:52:06 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-11 17:39:38 -0400 |
commit | 498d5c85681ddfea577377b8e10051fb445ac0c2 (patch) | |
tree | 10c4d32773d703374d000f7dc0ae3988f6926366 /apps/mochiweb/src/mochifmt_std.erl | |
parent | 7e67565d2241783b5f24a37400ddae83b00c7a81 (diff) |
move mochiweb to rebar layout
Diffstat (limited to 'apps/mochiweb/src/mochifmt_std.erl')
-rw-r--r-- | apps/mochiweb/src/mochifmt_std.erl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/mochiweb/src/mochifmt_std.erl b/apps/mochiweb/src/mochifmt_std.erl new file mode 100644 index 00000000..9442016a --- /dev/null +++ b/apps/mochiweb/src/mochifmt_std.erl @@ -0,0 +1,23 @@ +%% @author Bob Ippolito <bob@mochimedia.com> +%% @copyright 2008 Mochi Media, Inc. + +%% @doc Template module for a mochifmt formatter. + +-module(mochifmt_std, []). +-author('bob@mochimedia.com'). +-export([format/2, get_value/2, format_field/2, get_field/2, convert_field/2]). + +format(Format, Args) -> + mochifmt:format(Format, Args, THIS). + +get_field(Key, Args) -> + mochifmt:get_field(Key, Args, THIS). + +convert_field(Key, Args) -> + mochifmt:convert_field(Key, Args). + +get_value(Key, Args) -> + mochifmt:get_value(Key, Args). + +format_field(Arg, Format) -> + mochifmt:format_field(Arg, Format, THIS). |