Learn Buffalo

HTML Templates and Helpers

Part 5

Use Plush templates and helpers to generate HTML.

  • Buffalo template basics with Plush
  • default html page and modifying page title, favicon
  • global page regions
  • partials
  • helpers: linkTo(), contentFor is expanded into contentOf area; set default content as well
  • override page template in the controller
  • plush basics, iterators, etc.
  • create a custom helper: formatTime

Watch the video

View the code