Squarespace-Jade-Stylus
This plugin allows you to write Jade and Stylus when developing templates on the Squarespace Developers Platform. It automatically compiles and runs the css through autoprefixer.
You will still need to include your compiled .region
files in templates.conf
.
Directions
npm install sqs-jadenpm install -g nodemon
In your index.js file require and invoke the compile script.
var compileJade = ; ;
To run the jade compile script open a new terminal window and enter the following.
nodemon -e jade,js
If you are using this in conjunction with squarespace-jade use the following command instead.
nodemon -e jade,stylus,js
Nodemon watches for any changes to your template files and will automatically re-compile to the correct directory.