Layouts allow common page elements, such as the header, footer, navigation, or sidebar, to be shared among many templates. The template defines only the portion of the page which is unique, and is then dropped into the layout at specified point.
We might want those to be reused from page to page.…Layouts allow us to define these common page elements…and then reuse them.…The way that this works is we put them in a layout file,…and then Sinatra would render that file first.…And then at some point, it would be told to pause…and to yield control over to the template,…the unique part of the page,…and that template would then be able to render…
- Installing Sinatra
- Launching the server
- Defining routes
- Using route patterns and parameters
- Redirecting requests
- Rendering dynamic templates
- Using partial templates and layouts
- Defining custom helpers
Skill Level Intermediate
Ruby on Rails 5 Essential Trainingwith Kevin Skoglund10h 21m Beginner
3. Helpers and Filters
4. Useful Techniques
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.