[Catalyst] Root page for site (my first attempt!)
John M. Dlugosz
wxju46gefd at snkmail.com
Thu Feb 24 01:16:55 GMT 2011
On 2/23/2011 5:41 AM, Carl Franks fireartist-at-gmail.com |Catalyst/Allow to home| wrote:
> On 23 February 2011 11:30, John M. Dlugosz<wxju46gefd at snkmail.com> wrote:
>> I just started trying Catalyst. I went through the Packt Publishing book, but now want a more technical explanation with details. Any suggestions on what documentation to read?
>> With the situation as set-up by default, I would write:
>> <img src="/static/images/bad_logo.png" />
>> to access a site image. How can I configure it so I can write
> Using TT, that would be:
> [% c.uri_for('/foo/bad_logo.png') %]
I mean make the things under /foo serve as static files!
My understanding is that uri_for takes a Controller's "private" spec and produces the
URL. So what you wrote would be if I had a controller named Foo with a method named
bad_logo.png. Am I missing something here?
More information about the Catalyst