Home Download Buy Blog Forum Support

My build file for Haml to static Html

My build file for Haml to static Html

Postby qhoc on Mon Oct 01, 2012 5:36 am

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:

Code: Select all
{
    "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:

[Finished in 0.2s]


Thanks.

p.s. As you may realize, this is my effort after asking the question here: viewtopic.php?f=3&t=9450
qhoc
 
Posts: 2
Joined: Mon Oct 01, 2012 3:29 am

Re: My build file for Haml to static Html

Postby IGRACH on Mon Apr 08, 2013 1:51 pm

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
IGRACH
 
Posts: 20
Joined: Tue Oct 02, 2012 1:05 am

Re: My build file for Haml to static Html

Postby FichteFoll on Tue Apr 09, 2013 12:22 pm

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
Code: Select all
"cmd": ["haml.bat", "$file", "$file_path/../$file_base_name.html", "exit"],

or also append `"cmd.exe", "/c"` if that doesn't work
FichteFoll
 
Posts: 388
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot] and 22 guests