Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

v0.0.3

  • Loading branch information...
commit b0393dd99d83a86d1421adfd7835bc9acd8b696a 1 parent 1880692
@chjj authored
Showing with 9 additions and 9 deletions.
  1. +8 −8 README.md
  2. +1 −1  package.json
View
16 README.md
@@ -1,7 +1,7 @@
# Liquor
-Liquor is a templating engine for node. It's very lightweight. It's essentially
-embedded javascript with some shorthand significant whitespace notation
+Liquor is a templating engine for node. It's very lightweight. It's essentially
+embedded javascript with some shorthand significant whitespace notation
available. This is to discourage use of raw code and make templates look nicer.
## Usage
@@ -12,7 +12,7 @@ Backticks are used for evaluation, while `#{}` is used for interpolation.
?:data
<table>
<tr>
- @:col
+ @:col
<td>#{this}</td>
</tr>
@:data
@@ -64,15 +64,15 @@ Is essentially shorthand for:
``` html
`/* liquor also exposes an "each" helper function */`
`/* it is the same one used internally for @ statements */`
-`if (messages)
+`if (messages)
each(messages, function(message, key) {`
<p>#{key}: #{message.content}</p>
`})`
```
-If you're worried about the notorious "undefined" problem with variables
-expressed in raw evaluation of JS, you can access them as properties on a
-variable called `$`, which exists within the context of a template, and holds
+If you're worried about the notorious "undefined" problem with variables
+expressed in raw evaluation of JS, you can access them as properties on a
+variable called `$`, which exists within the context of a template, and holds
all of the locals and helpers:
e.g.
@@ -82,4 +82,4 @@ e.g.
```
## License
-(c) Copyright 2011, Christopher Jeffrey. See LICENSE for more info.
+(c) Copyright 2011-2012, Christopher Jeffrey. See LICENSE for more info.
View
2  package.json
@@ -2,7 +2,7 @@
"name": "liquor",
"description": "Templates, minus the code.",
"author": "Christopher Jeffrey",
- "version": "0.0.2",
+ "version": "0.0.3",
"main": "./lib/liquor.js",
"repository": "git://github.com/chjj/liquor.git",
"homepage": "https://github.com/chjj/liquor",
Please sign in to comment.
Something went wrong with that request. Please try again.