S
S
sergealmazov2015-02-26 11:43:13
HTML
sergealmazov, 2015-02-26 11:43:13

How to set up automatic HAML to HTML conversion in Windows when changing *.haml file?

There are wonderful programs Koala App and PrePros. Essentially what is needed. But they don't know how to convert HAML.
Is there something similar for HAML? Watcher needed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Andreev, 2015-04-18
@sergealmazov

PrePros can work with haml
or you can use gulp

var gulp = require('gulp');
var haml = require('gulp-haml');

gulp.task('haml', function () {
  gulp.src('./haml/blue/*.haml')
    .pipe(haml())
    .pipe(gulp.dest('./haml/blue'));
});

gulp.task('watch-haml', function() {
  gulp.watch(('./haml/blue/*.haml', ['haml']);
});

and run
gulp watch-haml

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question