Using builder templates outside of controller


I'm using a builder template to generate atom feeds.

So far so good, but I'd like to use the template inside a rake task to
generate static files every 10 minutes or so.

Would anyone care to suggest a Rails idiomatic way to do it?