Class: Woo::StyleguideController

Inherits:
ApplicationController show all
Includes:
StyleguideHelper
Defined in:
app/controllers/woo/styleguide_controller.rb

Constant Summary

Constants included from StyleguideHelper

Woo::StyleguideHelper::BASE_PATH

Instance Method Summary collapse

Methods included from StyleguideHelper

#current_page, #folder_files, #folders_names, #load_notes, #navigation_hash, #page_hash, #render_haml_string, #ui_elements

Instance Method Details

#indexObject

expose(:navigation) { navigation_hash() }



8
9
10
# File 'app/controllers/woo/styleguide_controller.rb', line 8

def index
  @ui_elements = ui_elements
end

#pageObject



12
13
14
# File 'app/controllers/woo/styleguide_controller.rb', line 12

def page
  @page = current_page(params[:folder], params[:page])
end