Skip to content

Instantly share code, notes, and snippets.

@midwire
Created September 16, 2022 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save midwire/8f7deef11181cdd9c64de624d7c773b1 to your computer and use it in GitHub Desktop.
Save midwire/8f7deef11181cdd9c64de624d7c773b1 to your computer and use it in GitHub Desktop.
[Rails renderer formats and handlers] list of rendering formats and handlers for Rails #ruby #rails
# You can pass these to `render`
formats: [
:atom,
:bmp,
:css,
:csv,
:doc,
:doc,
:docx,
:docx,
:gif,
:gzip,
:html,
:ics,
:jpeg,
:js,
:json,
:m4a,
:mp3,
:mp4,
:mpeg,
:multipart_form,
:ogg,
:otf,
:pdf,
:pdf,
:png,
:rss,
:svg,
:text,
:tiff,
:ttf,
:url_encoded_form,
:vcf,
:vtt,
:webm,
:woff,
:woff2,
:xls,
:xlsx,
:xml,
:yaml,
:zip
],
handlers: [
:"inky-axlsx",
:"inky-builder",
:"inky-caracal",
:"inky-coffee",
:"inky-erb",
:"inky-haml",
:"inky-html",
:"inky-jbuilder",
:"inky-prawn",
:"inky-raw",
:"inky-ruby",
:axlsx,
:builder,
:caracal,
:coffee,
:erb,
:haml,
:html,
:inky,
:jbuilder,
:prawn,
:raw,
:ruby
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment