The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Dotiac::DTL::Tag::spaceless - The {% spaceless %} tag

SYNOPSIS

Template file:

        {% spaceless lower %}
        <body>
                <p>
                        <br>
                </p>
                Text
        </body>
        {% endspaceless %} {# = hello world ..#}

This will result in:

        <body> <p> <br> </p>
                Text
        </body>

DESCRIPTION

Reduces all the spaces between tags in the output to a single space. The spaces between tags and text or text and text are left as they are.

BUGS AND DIFFERENCES TO DJANGO

The tag has to gather all the data first, so it will use remove the memory benefits coming from using print(), but only for the content inside the block.

SEE ALSO

http://www.djangoproject.com, Dotiac::DTL

LEGAL

Dotiac::DTL was built according to http://docs.djangoproject.com/en/dev/ref/templates/builtins/.

AUTHOR

Marc-Sebastian Lucksch

perl@marc-s.de