Skip to content

Commit

Permalink
rm'd extra return
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstrickland committed Feb 28, 2014
1 parent 2dce81c commit 1b92ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Let's say you have a template at `$project_root/app/assets/templates/crewmembers
HoganAssets (properly configured, of course), would compile the template and make it accessible to your javascript code as `HoganTemplates['crewmembers']`. So now your Knockout view model goes from this:

self.templateCallback = function () {
return return Hogan.parse(Hogan.scan("<p>{{.}}</p>"));
return Hogan.parse(Hogan.scan("<p>{{.}}</p>"));
};

to this:
Expand All @@ -76,4 +76,4 @@ to this:

And now you've entered the world of well-organized (and fast!) Javascript templates.

Viel Spaß
Viel Spaß

0 comments on commit 1b92ef5

Please sign in to comment.