Layouts for RJS templates?


Is it possible to have layouts for RJS templates?

The reason I ask is because I have code in my rjs templates the does the
same thing as flash. If there are alerts in the flash hash then I
display them by adding the html via javascript. I don’t want to include
this code in every rjs file. Which is why a layout would be nice.

Is this possible?