[Maypole] link macro
Benjamin Tucker
ben@btucker.net
Tue, 20 Jul 2004 12:32:06 -0400
On Jul 19, 2004, at 2:27 PM, Simon Cozens wrote:
> Benjamin Tucker:
>> I apologize if this has been brought up before, I couldn't find it in
>> the archive. The link macro as it ships with Maypole does not add a
>> slash between the $base and $table variables. It seems to me it
>> should, since trailing slashes are stripped from the uri_base.
>
> Thanks; I added the slash-trimming recently because I was getting
> double-slashes from URLs, and then never added it back on the factory
> templates. (Because I never use the factory templates)
fwiw, this also applies to the factory macros mason component that
ships with Marcus Ramberg's Maypole-View-Mason-0.1.
in the link method:
- <a href="<%$ARGS{base} .
$table%>/<%$command%>/<%$additional%>"><%$label%></a>
+ <a
href="<%$ARGS{base}%>/<%$table%>/<%$command%>/
<%$additional%>"><%$label%></a>