I have this snippet re-use in genshi and it works fine when I call it
<a py:def="check_nd_data(input)">
<py:choose test="">
<py:when test="input.startswith('test') == False">
<Dt>${input}</Dt>
</py:when>
<py:otherwise>
<NoData>${input}</NoData>
</py:otherwise>
</py:choose>
</a>
As you many understand, the whole point of snippets are to be able to create it once and use it in multiple places. So I dont want the output to have the extra hard coded tag
<a> </a>
before and after the input. How do I achieve this please.