https://github.com/duncanbeevers/gulp-jade-react
Compile Jade templates into React de-sugared JSX with Gulp
https://github.com/duncanbeevers/gulp-jade-react
Last synced: about 1 month ago
JSON representation
Compile Jade templates into React de-sugared JSX with Gulp
- Host: GitHub
- URL: https://github.com/duncanbeevers/gulp-jade-react
- Owner: duncanbeevers
- Created: 2014-01-26T05:16:59.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-01T12:58:41.000Z (about 11 years ago)
- Last Synced: 2024-07-31T19:27:40.394Z (9 months ago)
- Language: CoffeeScript
- Size: 207 KB
- Stars: 24
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
- awesome-react-cn - gulp-jade-react - Compile Jade templates into React de-sugared JSX with Gulp (Uncategorized / Uncategorized)
- awesome-react - gulp-jade-react - Compile Jade templates into React de-sugared JSX with Gulp
- awesome-learning-resources - gulp-jade-react - Compile Jade templates into React de-sugared JSX with Gulp (Uncategorized / Uncategorized)
- awesome-react - gulp-jade-react - Compile Jade templates into React de-sugared JSX with Gulp ` 📝 7 years ago` (React [🔝](#readme))
README
# Compile Jade templates to React.DOM
Uses [jade-react](https://github.com/duncanbeevers/jade-react) to compile templates to `React.DOM` directives as part of your [Gulp](https://github.com/gulpjs/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
````javascript
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'))
});
````