metadin
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

layout.rb
application/x-ruby

Download raw (559 bytes)

#
# metaflop - web interface
# © 2012 by alexis reigel
# www.metaflop.com
#
# licensed under gpl v3
#

class App
  module Views
    class Layout < Mustache
      def title
        @title || "metaflop"
      end

      def page_title
        self.class.name.split('::').last
      end

      def page_name
        page_title.downcase
      end

      def css
        []
      end

      def js
        []
      end

      def main_navigation
        @main_navigation 
      end

      def meta_navigation
        @meta_navigation 
      end
    end
  end
end