Sha256: 6d1fc4d6fa8cfcb06d6ff33599b2a1ebee5a4f5504a63cc00b124ab594c2c8b8
Contents?: true
Size: 637 Bytes
Versions: 4
Compression:
Stored size: 637 Bytes
Contents
module Owl module CMS module Helpers include Sinatra module Base def site_setting(key) Owl::CMS::App.settings.site_settings[key] end def theme_setting(key) Owl::CMS::App.settings.theme_settings[key] end def posts(include_unpublished=false) Owl::Lib::Page.all_posts(self, { include_unpublished: include_unpublished }) end def data(key) Owl::Lib::OtherData.read key end def page_path @page.path end def page_type @page.type end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
owl-cms-0.1.3 | core/helpers/base.rb |
owl-cms-0.1.2 | core/helpers/base.rb |
owl-cms-0.1.1 | core/helpers/base.rb |
owl-cms-0.1.0 | core/helpers/base.rb |