Module: CabezaDeTermo::AssetsPublisher::Helper

Defined in:
lib/cabeza-de-termo/assets-publisher/helpers/helper.rb

Overview

The View helper. To use it, add this to your view:

module Web module Views class YourView include CabezaDeTermo::AssetsPublisher::Helper … end end end

This will publish only one method to your views: #assets_publisher. From that method you can call the Publisher protocol.

Instance Method Summary collapse

Instance Method Details

#assets_publisherObject

Answer the Publisher to collect and publish stylesheets and javascripts from your current view.



22
23
24
# File 'lib/cabeza-de-termo/assets-publisher/helpers/helper.rb', line 22

def assets_publisher
	Publisher.new
end