Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)
```