Last active
December 13, 2017 11:10
-
-
Save VovanR/af11df77f1d293c9c408 to your computer and use it in GitHub Desktop.
jade2html
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
#!/bin/bash | |
# jade2html, version 0.1 | |
# | |
# Convert .jade to .html | |
# | |
# Example (convert foo.jade to foo.html): | |
# jade2html foo | |
# | |
# github.com/VovanR | |
# Author: VovanR (Vladimir Rodkin) | |
# twitter.com/VovanR | |
for i in *jade | |
do | |
name=${i%.jade} | |
jade "${name}.jade"; | |
js-beautify --type "html" --config ~/Dropbox/config/js-beautifier-config.json -r "${name%.*}.html"; | |
done | |
echo -e "Successful execution" | |
exit 0 | |
# Return 0 | |
# Exit Status: Success |
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
{ | |
"indent_inner_html": true, | |
"indent_size": 4, | |
"indent_char": " ", | |
"brace_style": "expand", | |
"indent_scripts": false, | |
"wrap_line_length": 80000, | |
"preserve_newlines": true, | |
"max_preserve_newlines": 80000, | |
"unformatted": ["i"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment