Skip to content

Commit

Permalink
Document tag escaping and blocks in the syntax synopsis
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed May 23, 2011
1 parent 6355c8b commit 6a92073
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ Eco's syntax is simple:
`property` from the context object passed to `render`.
* `<%= @helper() %>`: Call the helper method `helper` from the context
object passed to `render`, then print its escaped return value.
* `<% @helper -> %>...<% end %>`: Call the helper method `helper` with
a function as its first argument. When invoked, the function will
capture and return the content `...` inside the tag.
* `<%%` and `%%>` will result in a literal `<%` and `%>` in the
rendered template, respectively.

## A note about whitespace

Expand Down

0 comments on commit 6a92073

Please sign in to comment.