Sha256: 1c08a104f2816aedbe1169aeb4cb5cff6227d0911d920166a407fbbf09f1eac9
Contents?: true
Size: 812 Bytes
Versions: 3
Compression:
Stored size: 812 Bytes
Contents
require 'forwardable' module Pakyow module Helpers; end module AppHelpers extend Forwardable def_delegators :@presenter, :store, :store=, :content, :view=, :template=, :page=, :path, :path=, :compose, :composer, :precompose! def view Presenter::ViewContext.new(@presenter.view, self) end def partial(*args) Presenter::ViewContext.new(@presenter.partial(*args), self) end def template Presenter::ViewContext.new(@presenter.template, self) end def page Presenter::ViewContext.new(@presenter.page, self) end def container(*args) Presenter::ViewContext.new(@presenter.container(*args), self) end def presenter @presenter end def bindings(name) presenter.bindings(name).bindings end end end
Version data entries
3 entries across 3 versions & 1 rubygems