Using a Portlet
To use a Mack Portlet in your Mack application, is very simple. Simply add the Portlet to your config/initializers/portlets.rb file like so:
require_portlets do |p| p.add :my_cool_portlet p.add :another_portlet, :version => '2.1.2' end
The require_portlets method behaves in a similar fashion to the require_gems method. Under the covers it actually calls this method. Because of this the add method takes the exact same parameters as it does under the require_gems method.