gulp-community / gulp-haml

gulp plugin for Haml
MIT License
25 stars 20 forks source link

Option to output non-inline HTML #8

Closed trevanhetzel closed 9 years ago

trevanhetzel commented 10 years ago

I'm trying this out, just trying to convert a single Haml document into HTML5. It works great, but I feel like there's one thing missing: the ability to output uncompiled/unminified HTML. While that's great for performance and all, I just feel like spitting out HTML all in one line is not necessarily conventional and I could really get behind this plugin if you added that as an option :)

stephenlacy commented 10 years ago

What are you using as the compiler?

stephenlacy commented 9 years ago

What do you mean by 'uncompiled/unminified'?

czipperz commented 9 years ago

It's all in one line of text without breaks where we use in haml documents

fernandes commented 9 years ago

this is because of the default haml compiler

Note that this works almost the same as ruby's haml, but doesn't pretty print the html. This would greatly slow down and complicate the code. If you really want pretty printed html, then I suggest writing one using the xml parser library and process the resulting html..

creationix/haml-js

czipperz commented 9 years ago

@fernandes I don't use HAML before. I made my own language (HBML)

MattiJarvinen commented 9 years ago

https://www.npmjs.com/package/grunt-html-prettyprinter seems like a good fit for this?

stephenlacy commented 9 years ago

@MattiJarvinen-BA grunt? ...