Hm, I seem to be new with Google Groups, so you may get a double reply :P Well, you can use templates for that, which are supported by gems like staticmatic, sinatra, rails etc. I suggest staticmatic if you want to make static pages (and I assume you do), it's really awesome. You can define a single template file which would look something like this:
#header <!-- something here --> #content = yield #footer <!-- something else here --> And you would have other sites which are included instead of that = yield part. You'll figure it out :) On 16 ožu, 04:46, andoriyu <andor...@gmail.com> wrote: > Hello, > > It there any way to include haml in haml? For example, I have 5 views, > so all of them have same header and footer, and I don't want to change > that part in every view, i just want to change it once in one place. -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.