Go to file
dntzhang 3c8f9f3fc7 update readme 2017-05-10 10:05:14 +08:00
asset update md2site 2017-03-04 20:03:38 +08:00
cli fix cli 2017-05-02 12:39:01 +08:00
dist omi v1.6.2 - fix lowercase component option problem 2017-05-10 09:15:04 +08:00
docs update tutorial 2017-05-09 12:16:03 +08:00
example support ::data-* to pass data to child component 2017-05-09 11:53:34 +08:00
md2site update md2site 2017-05-03 09:07:43 +08:00
plugins support Omi.deletePlugin method 2017-04-11 08:49:46 +08:00
pr remove dependencies 2017-04-10 16:17:21 +08:00
scaffolding fix omi-cli 2017-04-07 11:32:00 +08:00
src omi v1.6.2 - fix lowercase component option problem 2017-05-10 09:15:04 +08:00
test slot test 2017-04-06 21:12:44 +08:00
todomvc omi v1.1.6 - spelling mistakes 2017-03-28 09:57:06 +08:00
ts update ts test 2017-04-02 11:13:44 +08:00
tutorial update readme 2017-05-10 10:05:14 +08:00
website update tutorial 2017-05-10 09:21:01 +08:00
.gitignore remove old ssr example 2017-04-03 16:00:40 +08:00
.travis.yml add travis.yml 2017-01-23 16:02:59 +08:00
README.md update readme 2017-05-10 10:03:12 +08:00
index.d.ts update ts test 2017-04-02 11:13:44 +08:00
index.html update tutorial 2017-05-10 09:35:30 +08:00
package.json omi v1.6.2 - fix lowercase component option problem 2017-05-10 09:15:04 +08:00
webpack.config.js prepare v1.5.0 2017-04-19 10:20:03 +08:00

README.md

Omi

Open and modern framework for building user interfaces.


中文 | English

命令行

$ npm install omi-cli -g       //安装cli
$ omi init your_project_name   //初始化项目,你也可以在一个空的文件夹下执行 omi init
$ cd your_project_name         //如果你是在空文件夹下执行的 omi init。请无视这条命令
$ npm run dev                  //开发
$ npm run dist                 //部署发布

特性

  • 超小的尺寸7 kb (gzip)
  • 良好的兼容性支持IE8请自行引用 es5-shim 或 es5-sham
  • 完全面向对象的组件体系
  • 局部CSSHTML+ Scoped CSS + JS组成可复用的组件
  • 更自由的更新每个组件都有update方法自由选择时机进行更新
  • 模板引擎可替换开发者可以重写Omi.template方法来使用任意模板引擎
  • 提供了ES6+和ES5的两种开发方案供开发者自由选择

插件

通过npm安装

$ npm install omi

Hello World

你可以使用 webpack + babel在webpack配置的module设置babel-loader立马就能使用ES6+来编写你的web程序。

如果使用omi.lite.js版本(不包含mustache.js模板引擎)的话,也可以使用 ${this.data.name} 的方式

CDN

感谢

  • morphdom-Fast and lightweight DOM diffing/patching (no virtual DOM needed)
  • sodajs-Light weight but powerful template engine for JavaScript
  • mustache.js-Minimal templating with {{mustaches}} in JavaScript

English | 中文

  • If you want to experience the Omi framework, you can visit Omi Playground or read the code of TodoMVC by Omi
  • If you want to use the Omi framework or develop and improve omi framework, please read the Omi documentation
  • If you want to get a better reading experience of the documents, you can visit Docs Website
  • Tutorial or blogs about omi frameworkyou can visit Omi Tutorial
  • If you are too lazy to build a project scaffolding, you can try omi-cli
  • If you have Any problemsplease New issue
  • If you want to be more convenient on the exchange of all Omi can join the QQ Omi exchange group (256426170)

omi-cli

$ npm install omi-cli -g       //install cli
$ omi init your_project_name   //init project, you can also exec 'omi init' in an empty folder
$ cd your_project_name         //please ignore this command if you executed 'omi init' in an empty folder
$ npm run dev                  //develop
$ npm run dist                 //release

Features

  • Super tiny size, 7 KB (gzip)
  • Good compatibility, support IE8 (please import es5-shim or es5-sham by yourself)
  • Fully object-oriented component system
  • Support Scoped CSS, reusable components are composed of HTML Scoped CSS and JS
  • More free updates, each component has a update method, free to choose the right time to update
  • Template engines can be replaced, developers can override the Omi.template method to use any template engine
  • Provides two development way ( ES6+ and ES5) for developers to choose freely

Plugins

Install

$ npm install omi

Hello World

You can use webpack + babelconfigure the babel-loader in the module settings of webpackthen you can use ES6+ to write your web program.

if using 'omi.lite.js' (without mustache.js)you can use the ${this.data.name} way

CDN

Thanks

  • morphdom-Fast and lightweight DOM diffing/patching (no virtual DOM needed)
  • sodajs-Light weight but powerful template engine for JavaScript
  • mustache.js-Minimal templating with {{mustaches}} in JavaScript

Contributors

name avatars company
CodeFalling alibaba
abell123456 alibaba
Aresn TalkingCoder
pasturn Mars Holding
vorshen Tencent
xcatliu Microsoft
dorsywang Tencent
dntzhang Tencent

License

This content is released under the MIT License.