Skip to content

Instantly share code, notes, and snippets.

@Enome
Created February 1, 2013 21:33
Show Gist options
  • Select an option

  • Save Enome/4694302 to your computer and use it in GitHub Desktop.

Select an option

Save Enome/4694302 to your computer and use it in GitHub Desktop.
Installation
Install it using npm:
npm install ab-trolley --save
Pass you base Express.js application to trolley.
var trolley = require('ab-trolley');
trolley.use(app, '$', '/yourbackend')
Include the following locals in your template. Make sure you don't escape the values.
!{trolley.head}
!{trolley.cart}
!{trolley.button(200.00)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment