Module: Mojito::Rendering::Markup

Defined in:
lib/mojito/rendering/markup.rb

Instance Method Summary collapse

Instance Method Details

#generate_json(&block) ⇒ Object



8
9
10
# File 'lib/mojito/rendering/markup.rb', line 8

def generate_json(&block)
	response.write JSONBuilder::Compiler.generate(&block)
end