=encoding utf8 =head1 NAME =begin original Mojolicious::Guides::Rendering - Rendering content =end original Mojolicious::Guides::Rendering - コンテンツのレンダリング =head1 OVERVIEW (説明) =begin original This document explains content generation with the L renderer. =end original 本書は、Mojoliciousレンダラを使ったコンテンツ生成について説明します。 =head1 CONCEPTS (概念) =begin original Essentials every L developer should know. =end original すべてのL開発者が知るべき本質 =head2 Renderer (レンダラ) =begin original The renderer is a tiny black box turning stash data into actual responses utilizing multiple template systems and data encoding modules. =end original レンダラは、複数のテンプレートシステムとデータエンコードモジュールを利用して、スタッシュデータを実際のレスポンスに変換する小さなブラックボックスです。 {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.' =begin original 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