Permalink
Browse files

Remove ${{blah}} from examples, too confusing

  • Loading branch information...
1 parent 8f0c661 commit 0194a294b63f937e631b1ce6138cb70d112aed3c @defunkt defunkt committed Apr 18, 2010
Showing with 11 additions and 11 deletions.
  1. +7 −7 README.md
  2. +4 −4 man/mustache.5.ron
View
@@ -75,9 +75,9 @@ reference others, some return values, some return only booleans.
Now let's write the template:
Hello {{name}}
- You have just won ${{value}}!
+ You have just won {{value}} dollars!
{{#in_ca}}
- Well, ${{taxed_value}}, after taxes.
+ Well, {{taxed_value}} dollars, after taxes.
{{/in_ca}}
This template references our view methods. To bring it all together,
@@ -88,8 +88,8 @@ here's the code to render actual HTML;
Which returns the following:
Hello Chris
- You have just won $10000!
- Well, $6000.0, after taxes.
+ You have just won 10000 dollars!
+ Well, 6000.0 dollars, after taxes.
Simple.
@@ -125,7 +125,7 @@ class-based and this more procedural style at your leisure.
Given this template (winner.mustache):
Hello {{name}}
- You have just won ${{value}}!
+ You have just won {{value}} bucks!
We can fill in the values at will:
@@ -137,14 +137,14 @@ We can fill in the values at will:
Which returns:
Hello George
- You have just won $100!
+ You have just won 100 bucks!
We can re-use the same object, too:
view[:name] = 'Tony'
view.render
Hello Tony
- You have just won $100!
+ You have just won 100 bucks!
Templates
View
@@ -6,9 +6,9 @@ mustache(5) -- Logic-less templates.
A typical Mustache template:
Hello {{name}}
- You have just won ${{value}}!
+ You have just won {{value}} dollars!
{{#in_ca}}
- Well, ${{taxed_value}}, after taxes.
+ Well, {{taxed_value}} dollars, after taxes.
{{/in_ca}}
Given the following hash:
@@ -23,8 +23,8 @@ Given the following hash:
Will produce the following:
Hello Chris
- You have just won $10000!
- Well, $6000.0, after taxes.
+ You have just won 10000 dollars!
+ Well, 6000.0 dollars, after taxes.
## DESCRIPTION

0 comments on commit 0194a29

Please sign in to comment.