Compile Jade templates into React de-sugared JSX with Gulp
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
Gulpfile.coffee
Readme.md
index.coffee
main.js
package.json
test.coffee

Readme.md

Compile Jade templates to React.DOM

Uses jade-react to compile templates to React.DOM directives as part of your Gulp build process.

The files are kind of useless on their own, so you'll want to prefix+suffix them to handle exporting the generated expressions.

Usage

var gulp = require('gulp');
var jadeReact = require('gulp-jade-react');

// Build React templates
gulp.task('templates', function () {
  gulp.src(['templates/*.jade'])
    .pipe(jadeReact())
    .pipe(gulp.dest('build'))
});