<div dir="ltr">Excellent! This works pretty well. I ended up wrapping the block in a comment too.<div><br></div><div>-Charlie</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 22, 2021 at 4:54 AM Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We have built-in PageTextVariables, see documentation:<br>
<br>
   <a href="https://www.pmwiki.org/wiki/PmWiki/PageTextVariables" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/PmWiki/PageTextVariables</a><br>
<br>
In your page:<br>
<br>
   (:include Template.MyTemplate param1="{*$:Var1}" :)<br>
<br>
   (:Var1:my markup block:)<br>
<br>
The above will work exactly as if you wrote:<br>
<br>
   (:include Template.MyTemplate param1="my markup block" :)<br>
<br>
Note that the include markup doesn't expect line breaks in the <br>
parameters, so your variable you can be a line, not a multiline block.<br>
<br>
If I need to pass a multiline block, I would try passing a page section <br>
to be included by the included page, something like:<br>
<br>
   (:include Template.MyTemplate param1="SomePage#start#end" :)<br>
<br>
and then Template.MyTemplate has a line like this:<br>
<br>
   (:include {$$param1}:)<br>
<br>
And SomePage contains something like:<br>
<br>
   [[#start]]<br>
   This is line 1.<br>
   Line 2.<br>
   [[#end]]<br>
<br>
Petko<br>
<br>
On 21/06/2021 22:04, Charlie Hayes wrote:<br>
> I would like to pass a block of markup to an (:include :)<br>
> <br>
> Something like:<br>
> <br>
> (:set var1:)<br>
> my markup block<br>
> (:setend:)<br>
> (:include Template.MyTemplate param1={$var1} :)<br>
> <br>
> I’ve been playing around with and reading through the documentation<br>
> and can’t figure out a built in method or a cookbook plugin.<br>
> <br>
> Any ideas?<br>
> <br>
> -Charlie<br>
</blockquote></div>