Permalink
Browse files

Added method to render html

  • Loading branch information...
1 parent b747bd4 commit a516de83fbe93a285e15be9983860e9704e66d84 @romanoff romanoff committed Nov 4, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 controller.go
View
@@ -138,6 +138,11 @@ func (c *Controller) RenderText(text string, objs ...interface{}) Result {
return &RenderTextResult{finalText}
}
+// Render html in response
+func (c *Controller) RenderHtml(html string) Result {
+ return &RenderHtmlResult{html}
+}
+
// Render a "todo" indicating that the action isn't done yet.
func (c *Controller) Todo() Result {
c.Response.Status = http.StatusNotImplemented

0 comments on commit a516de8

Please sign in to comment.