diff options
author | Christopher Lenz <cmlenz@apache.org> | 2008-05-22 20:30:57 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2008-05-22 20:30:57 +0000 |
commit | 10c68254aac8647c7bcf2a3d8f9523658eb828f7 (patch) | |
tree | a658b2b8959d523eeae70ab07f8fd0a4b412dfb8 /src/mochiweb/mochifmt_std.erl | |
parent | 3a08b41f8c2a97eee0904b6359e559ed76dfc9fd (diff) |
Updated MochiWeb in trunk to r73.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@659244 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/mochiweb/mochifmt_std.erl')
-rw-r--r-- | src/mochiweb/mochifmt_std.erl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mochiweb/mochifmt_std.erl b/src/mochiweb/mochifmt_std.erl new file mode 100644 index 00000000..9442016a --- /dev/null +++ b/src/mochiweb/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). |