Skip to content

Instantly share code, notes, and snippets.

@raine
Created September 26, 2015 10:43
Show Gist options
  • Save raine/b2d267f840c570255531 to your computer and use it in GitHub Desktop.
Save raine/b2d267f840c570255531 to your computer and use it in GitHub Desktop.
~ ❯❯❯ cat <<EOF | jade -O '{ nick: "chargen_" }'
script(type='text/javascript').
window.nick = !{JSON.stringify(nick)};
EOF
<script type="text/javascript">window.nick = "chargen_";</script>%
~ ❯❯❯ cat <<EOF | jade -O '{ nick: null }'
script(type='text/javascript').
window.nick = !{JSON.stringify(nick)};
EOF
<script type="text/javascript">window.nick = null;</script>%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment