Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

Commit

Permalink
Update readme and keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckegg committed Jan 18, 2013
1 parent b180899 commit 76c67d7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1 +1,2 @@
node_modules
node_modules
.DS_Store
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -13,9 +13,11 @@ A more recent concept is to do all of the rendering in the browser itself (popul

Over time fully client side rendering will improve, but this module attempts to get the best of both worlds right now.

## Work in progress
## Installation

None of this stuff is up on NPM yet...
```shell
$ npm install realtime-templates
```

## The Views

Expand Down Expand Up @@ -113,7 +115,7 @@ See [JSON Context](http://github.com/mmckegg/json-context) for more information

### Attribute: `t:bind`

Anytime the system hits a `t:bind` attribute while rendering the view, it sends the value of this attribute to the datasource `query` function. The return value is inserted as text inside the element.
Any time the system hits a `t:bind` attribute while rendering the view, it sends the value of this attribute to the datasource `query` function. The return value is inserted as text inside the element.

### Attribute: `t:bind:<attribute-name>`

Expand All @@ -133,8 +135,6 @@ Which would output:

The element will only be rendered if the datasource **returns `true`** when queried with the attribute value.

Note that the datasource must provide the exact value `true` - truthy values (such as non-zero number, string, etc) will not be excepted.

### Attribute: `t:unless`

The inverse of `t:if`. The element will only be rendered if the datasource **does not return `true`** when queried with the attribute value.
Expand Down
16 changes: 15 additions & 1 deletion package.json
Expand Up @@ -20,5 +20,19 @@
"optionalDependencies": {},
"engines": {
"node": "*"
}
},
"keywords": [
"data binding",
"view",
"realtime",
"templates",
"templating",
"html",
"pure",
"json",
"query",
"offline",
"filter",
"change stream"
]
}

0 comments on commit 76c67d7

Please sign in to comment.