X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=lib%2FMaypole%2Ftemplates%2Ffactory%2Fmacros;fp=lib%2FMaypole%2Ftemplates%2Ffactory%2Fmacros;h=ddaeae1bf8e23bff911e551561a3df504fafb1d8;hp=d2192bdad1557b2e11d8bb1e94e756a761275626;hb=a4b491683c59a0a505501187742b145eb538eb93;hpb=e3a67a74f645a5988f9b59458a320ab52ff5c708 diff --git a/lib/Maypole/templates/factory/macros b/lib/Maypole/templates/factory/macros index d2192bd..ddaeae1 100644 --- a/lib/Maypole/templates/factory/macros +++ b/lib/Maypole/templates/factory/macros @@ -10,12 +10,20 @@ system. This creates an to a command in the Apache::MVC system by catenating the base URL, table, command, and any arguments. +arguments are table, command, additional, label, target. + +target specifies a target for the link if provided. + #%] [% -MACRO link(table, command, additional, label) BLOCK; +MACRO link(table, command, additional, label, target) BLOCK; SET lnk = base _ "/" _ table _ "/" _ command _ "/" _ additional; lnk = lnk | uri ; - ''; + IF target ; + ''; + ELSE; + ''; + END; label | html; ""; END;