Skip to content

undoZen/chtmlx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

coffeescript version of htmlx module

Resources

License

Stars

Watchers

Forks

Packages

No packages published