Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PicOrb/gulp-jade-mithril

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compile Jade templates to Mithril.DOM

Uses jade-mithril to compile templates to Mithril.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 jadeMithril = require('gulp-jade-mithril');

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

About

Compile Jade templates into Mithril de-sugared JSX with Gulp

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 95.9%
  • JavaScript 4.1%