Module: Lilu::Camping

Defined in:
lib/lilu_camping.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.for(app, path) ⇒ Object



3
4
5
6
7
8
# File 'lib/lilu_camping.rb', line 3

def self.for(app,path)
  app.module_eval do
    include Lilu::Camping
    @@templates = path
  end
end

Instance Method Details

#render(m, layout = true) ⇒ Object



10
11
12
13
# File 'lib/lilu_camping.rb', line 10

def render(m,layout=true)
  @content_for_layout = render_lilu(m)
  render_lilu("layout") if layout
end