[Maypole] link macro

Benjamin Tucker ben@btucker.net
Mon, 19 Jul 2004 14:12:28 -0400


Hello,

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.

Ben

P.S. I got a permission error when I tried to grab the latest source 
from cvs:
> failed to create lock directory for 
> `/var/cvs/modules/Apache-MVC/lib/Maypole/Model/CDBI' 
> (/var/cvs/modules/Apache-MVC/lib/Maypole/Model/CDBI/#cvs.lock): 
> Permission denied


>>> proposed patch:
--- macros Mon Jul 19 13:34:49 2004
+++ macros      Fri Apr  2 13:16:56 2004
@@ -13,7 +13,7 @@
  #%]
  [%
  MACRO link(table, command, additional, label) BLOCK;
-    '<A HREF="' _ base _ "/" _ table _ "/" _ command _ "/" _ 
additional _ '">';
+    '<A HREF="' _ base _ table _ "/" _ command _ "/" _ additional _ 
'">';
      label;
      "</A>";
  END;