gruntjs - HAML to HTML converter on Windows -


is there haml html converter windows see on ubuntu uses grunt. ex. in terminal grunt haml converts code .haml .php offline. windows have app or something?

there's grunt-haml-php. doesn't work on windows. in order make run on windows, have make hacks it.

after installation done, find node_moules/grunt-haml-php/tasks/haml.js file , have tweak this.

... var compilehaml = function(item, cb) {   var args = ['-t', hamltarget || 'php', item ];   // change above line following   // var args = [path.join(__dirname, '../bin/haml'), '-t', hamltarget || 'php', item ];   ...    var child = grunt.util.spawn({     cmd: path.join(__dirname, '../bin/haml'),     // change above line following     // cmd: 'php',     args: args   }, function(error, result, code) {      cb(error, result.stdout);   });   ... 

grunt-haml-php uses mthaml, looks mthaml still not stable. lacks many features yet.

hope answer helps you're looking for.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -