amberframework/jasper-helpers

Controller Helpers

Opened this issue · 3 comments

The html, json, text and xml method helpers simplify setting the response headers.

Tasks:

Acceptance Criteria:

  • The ability to use templates to render text, xml, html, json
  • The proper content-type and response code is set

This has been done in amber/controllers/render.cr since it's uses are uniq to amber instead of helpers module.

@eliasjpr Is this already done?