Skip to content

Instantly share code, notes, and snippets.

@VovanR
Last active December 13, 2017 11:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VovanR/af11df77f1d293c9c408 to your computer and use it in GitHub Desktop.
Save VovanR/af11df77f1d293c9c408 to your computer and use it in GitHub Desktop.
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