[Catalyst] Doubts while converting Maypole framework to Catalyst framework
apv
apv at sedition.com
Mon Feb 27 19:54:14 CET 2006
You probably want this:
<a href="[%config.uri_base%]/page/about_sg.html">
<a href="[% c.uri_for("/page/about_sg.html") %]">
This is a TT2 Macro I use for a shortcut too (somewhat simplified for
clarity):
[%- MACRO link(title,path) BLOCK -%]
<a title="[% title | truncate(50) %]" href="[% c.uri_for(path) %]">[%
title %]</a>
[%- END -%]
Then you can do this:
<a title="About"
href="[%config.uri_base%]/page/about_sg.html">About</a>
becomes:
[% link("About", "/page/about_sg.html") %]
On Monday, February 27, 2006, at 10:38 AM, Vidya Sagar wrote:
> Hello All,
>
> I thought of converting my project which is currently in Maypole
> framework to Catalyst framework.For this i started changing my code
> wherever modifications are necessary.
>
> Previously whenever i want to give a url i used to give like:
> <a
> href="[%config.uri_base%]/page/about_sg.html">
>
> How shall i convert it,I tried my hand on all kinds of stuff like
> changing it into <a href="[%c.config.uri_base%]/page/about_sg.html">
> After that whenever i click on the url its connecting to the home
> page.
>
> So can anyone help me solve this issue.
>
>
> Thank
> you.
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
More information about the Catalyst
mailing list