GithubHelp home page GithubHelp logo

mantoxing / omi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tencent/omi

0.0 1.0 0.0 3.28 MB

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

Home Page: http://omijs.org

JavaScript 89.63% CSS 0.34% HTML 10.02% TypeScript 0.01%

omi's Introduction

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

License

This content is released under the MIT License.

omi's People

Contributors

nobey avatar pasturn avatar xcatliu avatar xcodebuild avatar xland avatar yanceyou avatar zhangsanshi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.