skamansam / pSaMS

Resurrection of SaMS ( circa 1997 ) in padrino. Web site for Rude Boy Enterprises, http://rbe.homeip.net.
http://www-rbe.rhcloud.com/
1 stars 1 forks source link

Create a plugin dependency mechanism #50

Open skamansam opened 9 years ago

skamansam commented 9 years ago

Should specify dependencies and provisions.

Probably just add a param to Plugin.add_* methods that takes a hash, like so:

dependencies = {
  depends: {
    jquery: '~>2.0'
  },
  provides: {
    'angular': '1.3'
  }
Plugin.add_action('add_js', 'posts', "Angular", 'get_js',0,dependencies)