Skip to content

Instantly share code, notes, and snippets.

@VovanR
Last active Dec 13, 2017
Embed
What would you like to do?
jade2html
#!/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
{
"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