=encoding utf8 =head1 NAME Mojolicious::Guides::Rendering - Rendering content =head1 OVERVIEW This document explains content generation with the L renderer. =head1 CONCEPTS Essentials every L developer should know. =head2 Renderer The renderer is a tiny black box turning stash data into actual responses utilizing multiple template systems and data encoding modules. {text => 'Hello.'} -> 200 OK, text/html, 'Hello.' {json => {x => 3}} -> 200 OK, application/json, '{"x":3}' {text => 'Oops.', status => '410'} -> 410 Gone, text/html, 'Oops.' Templates can be automatically detected if enough information is provided by the developer or routes. Template names are expected to follow the C scheme, with C