Permalink
Browse files

updated readme once again

  • Loading branch information...
1 parent 7880e31 commit e1a5f0a9b882cf403886bc497d2a36dedb8068f3 @rip747 rip747 committed Mar 21, 2012
Showing with 7 additions and 11 deletions.
  1. +7 −11 readme.markdown
View
@@ -2,7 +2,11 @@
Chris Wanstrath's [Mustache](http://mustache.github.com/) templates for [ColdFusion](https://github.com/pmcelhaney/Mustache.cfc).
-## Basic Usage
+## Installation
+
+Mustache is a single component. To install, download the Mustache.cfc file from the mustache directory.
+
+## Basic Usage
<cfset mustache = createObject("component", "Mustache").init()>
<cfset template = "Hello, {{thing}}!">
@@ -11,7 +15,6 @@ Chris Wanstrath's [Mustache](http://mustache.github.com/) templates for [ColdFus
<cfouptut>#mustache.render(template, context)#</cfouptut>
-
## Creating Views
Given a template named Winner.mustache:
@@ -21,7 +24,6 @@ Given a template named Winner.mustache:
{{#in_ca}}
Well, ${{taxed_value}}, after taxes.
{{/in_ca}}
-
And a view named Winner.cfc:
@@ -34,7 +36,7 @@ And a view named Winner.cfc:
You can render the view like so:
<cfset winner = createObject("component", "Winner")>
- <cfset winner.name = "Patrick">
+ <cfset winner.name = "Patrick">
<cfset winner.value = "1000">
<cfset winner.in_ca = true>
<cfoutput>#winner.render()#</cfoutput>
@@ -43,10 +45,4 @@ Result:
Hello Patrick
You have just won $1000!
- Well, $600, after taxes.
-
-## Installation
-
-Mustache is a single component. To install, download the Mustache.cfc file from the mustache directory.
-
-
+ Well, $600, after taxes.

0 comments on commit e1a5f0a

Please sign in to comment.