Template wrapper

I’ve been a die hard perl user for several years, but I’m seriously
thinking of giving the rails thing a try. I’ve been doing a little
playing with it but I can’t figure out how to create a wrapper template.
With perl I use the template-toolkit and with it I can create a wrapper
template that “wraps up” my content templates. The idea being that the
header,navbar,and footer don’t change from page to page and there’s no
need to cut and paste this into each template. Can I do this with ruby?
Please say yes because I’m starting to really like rails!

They’re called layouts, and are located in the app/views/layouts
folder. The layout with the same name as the controller is
automagickally applied to your views. You can override the layout
with the render or layout commands in the controller.

API docs:
http://api.rubyonrails.com/classes/ActionController/Layout/ClassMethods.html

Beautiful! If rubys templating system works as well as the
template-toolkit, I’ll be done with perl for the web!