Skip to content

Commit

Permalink
v0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Mar 7, 2012
1 parent 1880692 commit b0393dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions 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
Expand All @@ -12,7 +12,7 @@ Backticks are used for evaluation, while `#{}` is used for interpolation.
?:data
<table>
<tr>
@:col
@:col
<td>#{this}</td>
</tr>
@:data
Expand Down Expand Up @@ -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.
Expand All @@ -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.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit b0393dd

Please sign in to comment.