Skip to content

Instantly share code, notes, and snippets.

@k0sukey
Last active December 12, 2015 09:09
Show Gist options
  • Save k0sukey/4749660 to your computer and use it in GitHub Desktop.
Save k0sukey/4749660 to your computer and use it in GitHub Desktop.
fake css class with Alloy
...
Alloy.Globals.CSS = function(view, name){
var css = require('css/css');
view.applyProperties(css[name]);
};
exports.hoge = {
backgroundImage: '/images/hoge.png'
};
...
Alloy.Globals.CSS($.controller, 'hoge');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment