Sha256: c3fdb99466930d63405a3bc1ab7501cf6a7b195dedcc530cff51078f6af563f3
Contents?: true
Size: 662 Bytes
Versions: 6
Compression:
Stored size: 662 Bytes
Contents
# encoding: utf-8 require "pupu" require "pupu/helpers" Pupu.framework = :rango def Pupu.environment Rango.environment end def Pupu.logger Rango.logger end Rango.after_boot(:register_pupu) do Pupu.root = Rango.root #Pupu.media_prefix = Project.settings.media_prefix #Pupu.media_root = Project.settings.media_root Rango::Helpers.send(:include, Pupu::Helpers) Rango.logger.info("Pupu plugin registered") end module Pupu module Helpers def pupu_page # page = get_context_value(:page) # TOHLE KUNDA NEFUNGUJE V TEMPLEJTACH :( # set_context_value(:page, page || Page.new) context[:pupu_page] ||= Page.new end end end
Version data entries
6 entries across 6 versions & 1 rubygems