文件名称:将 Jade 模板编译为 React.DOM 表达式
文件大小:24KB
文件格式:ZIP
更新时间:2024-06-28 09:43:51
React Integration
jade-react 将 Jade 模板编译为 React 脱糖 JSX。 .container-fluid.readme .row h1= this.storeName ul 每个产品在 this.products li | product = product.title into function () { function map (obj, fn) { if ('number' === typeof obj.length) return obj.map(fn); var result = [], key, hasProp = {}.hasOwnProperty; for (key in obj) hasProp.call(obj, key) && result.push(fn(key, obj[key])); 返回结果; } return React.DOM.div({ "className": "container-fluid readme" }, React.DOM.div({ "className": "row" }, React.DOM.h1(null, this.st
【文件预览】:
jade-react-master
----package.json(785B)
----test()
--------compilation-test.coffee(1KB)
--------fixtures()
--------helpers()
----Readme.md(897B)
----src()
--------class-expression-compiler.coffee(459B)
--------class-array-expression-compiler.coffee(1KB)
--------compiler.coffee(8KB)
--------main.coffee(161B)
----Gulpfile.coffee(257B)
----.gitignore(14B)