zhangxuekun / omi

Open and Modern framework for building user Interfaces - 开放现代的Web组件化框架

Home Page:http://omijs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Omi

Open and modern framework for building user interfaces.

Version Download PRs

中文README

Omi

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 start                    # develop
$ npm run dist                 # release

other cmd:

$ npm run ie    # debugging in ie8

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 + babel, configure the babel-loader in the module settings of webpack, then 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)
  • art-template - JS template engine with excellent performance
  • sodajs - Light weight but powerful template engine for JavaScript
  • mustache.js - Minimal templating with {{mustaches}} in JavaScript

Thanks to omi contributors

License

This content is released under the MIT License.

About

Open and Modern framework for building user Interfaces - 开放现代的Web组件化框架

http://omijs.org


Languages

Language:JavaScript 89.6%Language:HTML 10.0%Language:CSS 0.3%Language:TypeScript 0.0%