Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/we-lib/ever.js
Angular-like but templating library
https://github.com/we-lib/ever.js
Last synced: about 1 month ago
JSON representation
Angular-like but templating library
- Host: GitHub
- URL: https://github.com/we-lib/ever.js
- Owner: we-lib
- Created: 2014-10-20T08:55:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-20T09:33:17.000Z (about 10 years ago)
- Last Synced: 2024-10-12T22:16:18.170Z (3 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ever.js
> Ever Simple, Ever Fast
Angular-like but templating library
## Brief
- Anuglar-like dom style
- No data-bindings here
- jQuery/Zepto based, make sure `.data()` is enabled
- Remember to handle style of `[r-cloak]`
- Use arrays to `[r-repeat]`## Directives
- `r-app`: Outward scanning boundary
- `r-unit`: Template storing unit
- `r-cloak`: Tells a unit is not ready
- `r-repeat`: Repeats an item
- `r-text`: Sets the text content
- `r-with`: Sets a var scope## Demo
```html
[r-cloak]{display:none;}
```
```js
var todosData = {
title: 'Todos',
jobs: [
{
completed: false,
content: 'Read the book'
},
{
completed: true,
content: 'Write the code'
},
{
completed: false,
content: 'Go to bed'
}
]
}
$('#app').ever(todosData)
```