PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/priv/skel/blog/resources/resource_default_postcomment.erl

https://code.google.com/p/zotonic/
Erlang | 13 lines | 7 code | 3 blank | 3 comment | 0 complexity | a710ab14b81cdf1070a0f9fa1c019524 MD5 | raw file
 1%% @author author <author@example.com>
 2%% @copyright YYYY author.
 3%% @doc Example webmachine_resource.
 4
 5-module(resource_default_postcomment).
 6-export([event/2]).
 7
 8-include_lib("zotonic.hrl").
 9
10event({submit, postcomment, _TriggerId, _TargetId}, Context) ->
11	?DEBUG(z_context:get_q_all(Context)),
12    {Html, Context1} = z_template:render_to_iolist("_article_comments.tpl",[], Context),
13    z_render:update("comments", Html, Context1).