From: http://jmtd.livejournal.com/ Date: Mon, 13 Sep 2010 19:37:50 +0000 (+0000) Subject: mixing template vars into directive arguments X-Git-Tag: 3.20100915~11^2 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=8e8b011c1a64cc15b08e0e61f1bb85eede1e3318 mixing template vars into directive arguments --- diff --git a/doc/bugs/can__39__t_mix_template_vars_inside_directives.mdwn b/doc/bugs/can__39__t_mix_template_vars_inside_directives.mdwn new file mode 100644 index 000000000..0fa85effb --- /dev/null +++ b/doc/bugs/can__39__t_mix_template_vars_inside_directives.mdwn @@ -0,0 +1,33 @@ +I often find myself wrapping the same boiler plate around [[ikiwiki/directives/img]] img directives, so I tried to encapsulate it using the following [[ikiwiki/directives/template]]: + + +
+ [\[!img + size="" + + + alt="" + + + alt="" + + alt="[pic]" + + + + ]] + +

+
+
+ +The result, even with htmlscrubber disabled, is mangled, something like + +
+ ?size + +
+ +Any suggestions gladly received. -- [[Jon]]