This question about Topic Markup Language and applications: Answered

Are SEARCH blocks evaluated within HTML comments?

MartinCleaver: Are SEARCH blocks expanded within HTML comments?

It looks like they aren't, which is a shame because I wanted to see how a SEARCH expands before the result is passed to DirectedGraphPlugin

Example:
 <!-- 
   * Set QUERY=%SEARCH{params}%
 -->
<dot map=1> digraph A { 
%Q% } </dot>

 %Q

I hoped this would show me the query result that it fed to dot.

Looking at the HTML it seems that Q is left unset.

This means to debug I have to copy the SEARCH block twice, once inside dot and again after it.


It will work inside a comment block.

If you want to read %Q%, then you need to Set it, not Set QUERY. You may also need spaces around the equal sign.

-- SeanMorgan - 08 Feb 2010

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Foswiki 1.0.8
Status Answered
Topic revision: r4 - 10 Jan 2013, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy