[sc34wg3] CTM: Proposal for %mergemap directive

Lars Heuer heuer at semagia.com
Thu Nov 22 11:30:33 EST 2007

Hi Robert,

>   %mergemap "echo '...' | mysql --batch | ... |" x my-template ($2, $1, $4)
>   # executes a MySQL query and uses the my-template to generate CTM content

> I do not think that preempting the syntax of %mergemap (and/or
> %include) is the way to go....

Well, we had X-directives in CTM
but they were removed in Montreal. You could have used such directives
to do anything you want.

I am afraid, that they are removed eternally (at least for version
1.0), but you can, for example, use special comments

      #%x-rho-directive do-something-evil-here

and you'll get the same effect (ignored by all parsers which are
unaware of the special syntax). Ugly, but works :)
Best regards,

More information about the sc34wg3 mailing list