>> We can expose web.redirect method and write a macro.
>>
>> {{Redirect("/newpage")}}
>
> I was thinking a type might be more appropriate. A macro seems weird
> because that gets rendered when the page is drawn and in a redirect
> you don't actually draw the page.
Even then the view template should do the job of redirecting at the
time of rendering.
I don't think adding a special case is a good idea.
On 16-Jul-07, at 1:34 PM, Aaron Swartz wrote:
>> We can expose web.redirect method and write a macro. "/newpage" )}}
>>
>> {{Redirect(
>
> I was thinking a type might be more appropriate. A macro seems weird
> because that gets rendered when the page is drawn and in a redirect
> you don't actually draw the page.
Even then the view template should do the job of redirecting at the
time of rendering.
I don't think adding a special case is a good idea.