GithubHelp home page GithubHelp logo

kirahan / vmix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peterli888/vmix

0.0 2.0 0.0 3.5 MB

view module,web component,Front-end framework,with loader,parser,binder,watcher,dataflow-control,extend,private-style,custome-element,slot

Home Page: https://peterli888.github.io/vmix

License: Apache License 2.0

JavaScript 100.00%

vmix's Introduction

vmix.js

view module web component system,with loader,parser,binder,watcher,dataflow-control,extend,private-style,custome-element,slot

step.1 include vmix.js,it will take care everything

<script src="vmix.js" data-role='vmix' app-file="app.js" index-file='index.vm.html'></script>

step.2 write a vm file abc.html,mix your html-style-data-event,

<style>...</style> 
<template>
<tag attra={a} attrb={b(1,2,3)} attrc={!c!}/>
<tag on-click="a" />
<tag watch-a="b" />
<tag el-filter="a " el-hook="b" el-list="c"/>
<tag vm-src="abd.html">
</template> 
<script>
this.data={};
this.abc=function(){};

or module.exports={
  option,state,event,method,fn,
}
</script>

step.3 import abc.html

<vm  id='xyz' src='./abc.html' />                 use default tag name,and define a src,
<div id='xyz' vm -src='./abc.html'/>              use any     tag name,and define a vm-src
<abc id='xyz'/>                                   custom Element name

specific

  • Declarative:no global object,no "new vm()",vmix.js do everrything,
  • node style: node style js module exports, or just this.abc=xyz,
  • viewModule: plain js define,no relation with html element,
  • file: auto load-parse-cache-clean file,js inline,js require,
  • data-el: one-way two-way data-bind,
  • dataflow: 3 data type(data,option,state),3 data source(store,parent,self),controllable dataflow,
  • interact: up-down through defined data-option-state-event
  • custom Element name,private style,dom slot,inline js,

vmix's People

Contributors

peterli888 avatar

Watchers

James Cloos avatar kira晗 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.