Sublime Forum

My build file for Haml to static Html

#1

Since I don’t use Rails, I need a way to do Ctrl-B and spit out .html from .haml files. This is what I came up with for Windows:

{ "cmd": "cmd.exe", "/c", "start", "haml.bat", "$file", "$file_path/../$file_base_name.html", "exit"], "file_regex": "^(..^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.haml" }

But here is problem: There is no log/notification of the build process in Sublime Text window. Is there a way to capture, at least the success message?

This is what I see now:

Thanks.

p.s. As you may realize, this is my effort after asking the question here: Which github for Haml and any build system?

0 Likes

#2

Hi dude I’, looking the same this as u, but im a bit a noob. When i make build whit ure code im getting an error “.bat missing” plz help

0 Likes

#3

I’m assuming that you have echo statements in that .bat and you do see something when running that command in the command line? I also suspect “start” being the culprit here.

Try

"cmd": "haml.bat", "$file", "$file_path/../$file_base_name.html", "exit"],

or also append "cmd.exe", "/c" if that doesn’t work

0 Likes