Module: StyleGuideAPI::Helpers

Defined in:
lib/styleguide-api/helpers.rb

Instance Method Summary collapse

Instance Method Details

#style_cssObject



7
8
9
10
11
# File 'lib/styleguide-api/helpers.rb', line 7

def style_css
  StyleGuideAPI.stylesheets.map do |url|
    %Q(<link href="#{url}" rel="stylesheet">)
  end.join("\n")
end

#style_template(name, locals = {}, &block) ⇒ Object



3
4
5
# File 'lib/styleguide-api/helpers.rb', line 3

def style_template(name, locals = {}, &block)
  StyleGuideAPI::render(name, locals, &block)
end