Class: Pwb::CssController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/pwb/css_controller.rb

Instance Method Summary collapse

Instance Method Details

#custom_cssObject

renders a stylesheet with client configured variables

  • spt 2017 - currently only used by devise layout

other layout directly render partial via helper method



6
7
8
9
10
11
12
# File 'app/controllers/pwb/css_controller.rb', line 6

def custom_css
  @bg_style_vars = []
  @text_color_style_vars = []
  @current_website = Website.unique_instance
  theme_name = params[:theme_name] || default
  render "pwb/custom_css/#{theme_name}", formats: :css
end