chtmlx
v0.1.3
Published
coffeescript version of htmlx module
Downloads
5
Readme
chtmlx
CoffeeScript version of htmlx module.
Help you separate html part from a react component.
##Installation
npm install chtmlx
##Usage
should be used with webpack and coffee-loader
#hello-component.coffee
Hello = React.createClass
render: require('coffee!chtmlx!./template.chtmlx')
#template.chtmlx
Mr = require('coffee!chtmlx!./mr.chtmlx').bind(this)
<p>
Hello, <Mr>Wang</Mr>
</p>
##Lisence MIT