Respond With
Last updated
Last updated
If we need to render a template to html render("template.slang")
works nicely. A lot of times we want to respond with json, xml, text or something else. In those cases we use respond_with
.
Put it all together and you can respond to whatever is asked for.