Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mojito Shaker

Mojito Shaker

okuryu

May 17, 2012
Tweet

More Decks by okuryu

Other Decks in Programming

Transcript

  1. What’s Shaker? “Shaker is a static asset rollup manager for

    Mojito applications.” http://developer.yahoo.com/cocktails/shaker/shaker_overview.html
  2. Why Shaker? var device = ac.context.device, css = '/static/device/assets/simple'; if

    (device === 'iphone') { css += '.' + device; } css += '.css'; ac.assets.addCss(css, 'top'); Example: With Shaker: No logic to write. (Rollups are picked up automatically)