Skip to content

Instantly share code, notes, and snippets.

@arian
Created August 14, 2012 02:20
Show Gist options
  • Save arian/3345801 to your computer and use it in GitHub Desktop.
Save arian/3345801 to your computer and use it in GitHub Desktop.
Make Jade templates requirable
./node_modules/.bin/jade --no-debug --client --out ./public/templates ./views/partials/*
sed -i 's/^function anonymous/require("jade\/runtime");module.exports = function/' ./public/templates/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment