Method: Mutx::Helpers#partial

Defined in:
lib/mutx/lib/helpers.rb

#partial(file, args = {}) ⇒ Object



30
31
32
33
# File 'lib/mutx/lib/helpers.rb', line 30

def partial(file, args={})
  message_file_path = File.read("#{Mutx::View.path}/#{file}.mote")
  Mote.parse(message_file_path, self, args.keys).call(args)
end