Module: Juggle::Context

Defined in:
lib/juggle/context.rb

Instance Method Summary collapse

Instance Method Details

#js(name, &blk) ⇒ Object



8
9
10
11
12
13
# File 'lib/juggle/context.rb', line 8

def js(name, &blk)
  f = Juggle::Jug.new(&blk)
  f.name = name
  
  Juggle.jugs[f.name] = f
end

#templates(path) ⇒ Object



4
5
6
# File 'lib/juggle/context.rb', line 4

def templates(path)
  Juggle.settings[:templates] = File.join(Juggle.root, path)
end