Module: Slimmer::Template

Defined in:
lib/slimmer/template.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(into) ⇒ Object



3
4
5
# File 'lib/slimmer/template.rb', line 3

def self.included(into)
  into.extend ClassMethods
end

Instance Method Details

#slimmer_template(template_name) ⇒ Object



7
8
9
# File 'lib/slimmer/template.rb', line 7

def slimmer_template(template_name)
  response.headers[Slimmer::Headers::TEMPLATE_HEADER] = template_name.to_s
end