Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix linkTo example in the readme

  • Loading branch information...
commit aed6b85928ac203502e9cd6544f8344d7545b72e 1 parent a6390de
@sstephenson authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -139,7 +139,7 @@ can be printed in `<%= ... %>` tags without being escaped. You can use
this in conjunction with the context object's `escape` method to
selectively sanitize parts of the string. For example,
- eco.render "<%= linkTo @project %>",
+ eco.render "<%= @linkTo @project %>",
project: { id: 4, name: "Crate & Barrel" }
linkTo: (project) ->
url = "/projects/#{project.id}"
@@ -158,7 +158,7 @@ formats other than HTML, or to bypass escaping entirely. For example,
eco.render "From: <%= @address %>",
address: "Sam Stephenson <sstephenson@gmail.com>"
- escape: (string) -> string
+ escape: (string) -> string
would return:
Please sign in to comment.
Something went wrong with that request. Please try again.