At the moment the template in use here is hard coded into train and anyone trying to change it will have a fun time doing so. My current line of thinking is to have "partials" for each template, probabbly taking the form of everything upto <% yeild %> and then another for everything after it.
Another big point is that there are elements of the site that are greatly improved by javascript, and all of them need the jQuery library so the partials will only be for the area inside the <body> tags. For any extra header info line javascript links and stylesheets there are a couple of helper methods that you can use.
1 jsit 'firstjsfile', 'secondjsfile'
That places the link tags for the two javascript files in the header just after the jquery library.
I hope to have something working in the next few days.
My Blog