I'm building a [Catalyst](http://www.catalystframework.org) application and I want to use [Template Toolkit](http://template-toolkit.org/) as my templating system. However, my application will be responding to many domains, and depending on the domain, it will display different content with different `Template Toolkit` configs. Essentially, if I have domain.com and domain2.com, I'd like each to have its own config. Does anyone know of an elegant way to do this while still being able to use `Catalyst`'s view feature? Thanks!

**UPDATE**

By putting this in the Root Controller, I've figured out that I can change the site wrapper in the config fro the `Template Toolkit` object. However, it just seems to use the initial wrapper located in `lib/myapp/View/HTML.pm` (I'm guessing because it's just using the wrapper that it was initialized with). Is there anyway to get it to recognize that I changed the wrapper for this request?

```
sub begin :Private {
    my ($self, $c) = @_;

    $c->view('HTML')->config->{WRAPPER} = $c->req->uri->host . '/site/wrapper';
}

```