Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #130 from thinkerbot/doc_update

fix example in tilt documentation
  • Loading branch information...
commit be571e65848331c6d720c1587eefbe7cfcd9b4fe 2 parents e13a336 + a179f0b
@rtomayko authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/tilt
View
4 bin/tilt
@@ -27,9 +27,9 @@ Process ERB template:
Answer: 4
Define variables:
- $ echo "Answer: <%= 2 + n %>" | tilt --locals="{:n=>40, :x=>0}"
+ $ echo "Answer: <%= 2 + n %>" | tilt -t erb --vars="{:n=>40}"
Answer: 42
- $ echo "Answer: <%= 2 + n %>" | tilt -Dn=40 -Dx=0
+ $ echo "Answer: <%= 2 + n.to_i %>" | tilt -t erb -Dn=40
Answer: 42
USAGE
Please sign in to comment.
Something went wrong with that request. Please try again.