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<[email protected]> 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
src="foo/bad_logo.png"
instead?
Using TT, that would be:
[% c.uri_for('/foo/bad_logo.png') %]
Cheers,
Carl
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?
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/