duncanbeevers / Jade React
Compile Jade templates to React.DOM expressions
Stars: ✭ 152
Programming Languages
coffeescript
4710 projects
jade-react
Compile Jade templates to React de-sugared JSX.
.container-fluid.readme
.row
h1= this.storeName
ul
each product in 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 result;
}
return React.DOM.div({
"className": "container-fluid readme"
},
React.DOM.div({
"className": "row"
},
React.DOM.h1(null,
this.storeName
),
React.DOM.ul(null),
map(this.products, function (product, $index) {
return React.DOM.li(null,
"Product",
product.title
);
}
)
)
);
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].