The Wayback Machine - http://web.archive.org/web/20201206140858/https://github.com/MrSoya/impex
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
ext
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

impex.js

一个基于数据驱动的组件式web开发引擎

Website

http://impexjs.org/

Demo

<div id="entry">
    {{ 'hello ' + title => cap}}
    <x-subtitle>
        {{version}}
    </x-subtitle>
</div>
<script>
	//过滤器
    impex.filter('cap',function(v){
        var cap = v[0].toUpperCase();
        return cap + v.substr(1);
    });
    //组件
    impex.component('x-subtitle',{
        template:"<sub><slot></slot></sub>"
    });

    //渲染
    impex.render('#entry',{
        state:{
            title:'impex',
            version:impex.version.toString()
        }
    });

</script>

兼容性

  • IE9+
  • FF38+
  • chrome43+
  • safari8+
  • opera31+
  • android4.0+
  • IOS7.1+

Local Examples

1. npm install http-server -g
2. http-server ./examples/ -p30760 -o

License

Impex基于 MIT 协议发布。请查阅LICENSE文件

You can’t perform that action at this time.