5.30. simple Filter


Interface

!block simple [;parameters]
...
!endblock

The parameters are:

Name Description
pre Perl code to execute before the block
exec executed for each line with $line containing the text line
post Perl code to execute after the block

Description

The simple filter is typically used as a building block for other filters. It provides a simple way of specifying the before (pre), per-line (exec) and after (post) actions.


Note: As creating new filters is not something that the average SDF users does, this filter is really provided to make life easier for advanced SDF users and SDF administrators.


Examples

!on filter "testcases";; \
        $name='simple'; \
        $params.=';pre="!testcaseStart"'; \
        $params.=';post="!testcaseEnd"'