MyPackageView = require './my-package-view' module.exports = myPackageView: null activate: (state) -> @myPackageView = new MyPackageView(state.myPackageViewState) deactivate: -> @myPackageView.destroy() serialize: -> myPackageViewState: @myPackageView.serialize()
Less is an even simpler transition from CSS. It adds a number of useful things like variables and functions to CSS. You can learn about Less at lesscss.org. Our usage of Less won't get too complex in this book however, so as long as you know basic CSS you should be fine.