Sha256: 72a2e9cbe2a2992380b761e53c7d09c6c80d065357b49040460a13c4d85c9877
Contents?: true
Size: 628 Bytes
Versions: 8
Compression:
Stored size: 628 Bytes
Contents
class Layouts::ApplicationPresenter < Curly::Presenter # If you need to assign variables to the presenter, you can use the # `presents` method. # # presents :foo, :bar # # Any public method defined in a presenter class will be available # to the Curly template as a variable. Consider making these methods # idempotent. exposes_helper :csrf_meta_tags def yield yield end def stylesheet_links stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' end def javascript_links javascript_include_tag 'application', 'data-turbolinks-track': 'reload' end end
Version data entries
8 entries across 8 versions & 1 rubygems