Last active
March 4, 2017 00:52
-
-
Save esimov/3898955 to your computer and use it in GitHub Desktop.
Sublime build for HAML->HTML automatic conversion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cmd": ["haml"], | |
"working_dir": "${file_path:${folder}}", | |
"selector": "source.haml", | |
"file_regex": "(.*\\.ts?)\\s\\(([0-9]+)\\,([0-9]+)\\)\\:\\s(...*?)$", | |
"windows": | |
{ | |
"cmd": ["haml", "--trace", "$file", "${file_base_name}.html"], | |
"shell": "true" | |
} | |
} |
For Linux user:
$ cd ~/.config/sublime-text-3/Packages/User
create file "haml.sublime-build", paste the following code, save:
{
"cmd": ["haml", "-q", "$file", "${file_path}/${file_base_name}.html"],
"selector" : "text.haml"
}
http://docs.sublimetext.info/en/latest/reference/build_systems/configuration.html
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will not work with Automatic build system. You need to update that
selector
totext.haml
"selector": "text.haml"
Reference: http://stackoverflow.com/questions/27154136/build-haml-automatic-in-sublime-3-doesnt-work