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

https://github.com/lin-xi/koala

Koala is a mvc framework
https://github.com/lin-xi/koala

Last synced: 5 months ago
JSON representation

Koala is a mvc framework

Awesome Lists containing this project

README

        

Koala
======
![koala](koala.png)

Koala is a mvc framework, it runs on web and mobile platfroms, and doesn't relay on any other framework.

Feature:

+ **modularized**
koala can automatically load controllers, services, plugins and filters when they are used, you do not need to refer them in the html files like what you must do in angular.

## 5分钟入门

1. html

```







koala demo






```

2. app.js

```
var app = window.app = koala.module('koala-demo');

app.config({
base: 'js',
router: {
'/': {
controller: 'IndexController',
template: 'views/index'
}
},
view: '#view'
});
```

3. 目录结构

```
+--src
+--component
+--controllers
---AppController.js
---IndexController.js
+--stores
+--views
---index.tpl
---app.js
---koala.js
```

4. 模板 views/index.tpl

```


  • 姓名

  • 财富




    {{#each brandList}}


  • {{name}}




    {{fortune}}元




    {{time|dateTime}}


  • {{/each}}


```

5. 控制器 IndexController.js