chtmlx

0.1.3 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i chtmlx

    Weekly Downloads

    1

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • undozen