I use templates for that kind of stuff.