See the API documentation for partials or an improved version (nb. that one is a little outdated about how to pass argument to the partial)
category: Howto