title |
---|
Layouts & Partials |
Layouts allow the common HTML surrounding individual pages to be shared across all your templates. The most basic layout has some shared content and a yield
call where templates will place their contents. Furthermore, With wrap_layout
, content_for
and partial
you can build a complex layout inheritance, reduce the duplication of you code in templates to a minimal amount.