Html Without Html

Ill-informed boss: Hey that's HTML in the 'model'! It's not allowed there!

Bright-eyed bushy-tailed hireling: Fret not! That's HtmlWithoutHtml.

def somewhere_model_side
xml = Builder::XmlMarkup.new
xml.html do
xml.body do
xml.p{ "I'm in ur model, writing ur HTML" }
end
end
end

See also AlternateHardAndSoftLayers, ModelViewController, and ModelViewControllerMisconceptions...