Ecosyste.ms: Awesome
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: 15 days ago
JSON representation
Koala is a mvc framework
- Host: GitHub
- URL: https://github.com/lin-xi/koala
- Owner: lin-xi
- Created: 2014-05-29T07:24:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-19T10:04:08.000Z (over 9 years ago)
- Last Synced: 2024-11-11T09:44:38.060Z (2 months ago)
- Language: Java
- Homepage:
- Size: 559 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```
- 姓名
- 财富
-
-
{{name}}
{{fortune}}元
{{time|dateTime}}
{{#each brandList}}
{{/each}}
```
5. 控制器 IndexController.js