Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed errors in docs...

  • Loading branch information...
commit ef32ad127c65918adce720a4edaed830f5c1a179 1 parent e68d96a
@davebryson authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.textile
View
6 README.textile
@@ -53,8 +53,7 @@ show(Params) ->
%% Callback for show
handle_request(show,Params) ->
- Data = [{name,"BeepBeep"}],
- {render, "hello/show.html",[{data,Data}],Params}.
+ {render, "hello/show.html",[{name,"BeepBeep"}],Params}.
%% Callback filter hook
@@ -78,7 +77,8 @@ Which will result in:
<pre><code>
<h2>Hello from BeepBeep</h2>
</code></pre>
-The "data" key set in the controller is passed to the template and expanded using the Django format
+
+The "name" key set in the controller is passed to the template and expanded using the Django format
via erlyDTL.
This approach provides a clean separation of the erlang logic in the controller and the html code in
Please sign in to comment.
Something went wrong with that request. Please try again.