Marc - Sebastian Lucksch > Dotiac-0.8 > Dotiac::DTL::Tag::spaceless

Download:
dotiac/Dotiac-0.8.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.8   Source   Latest Release: Dotiac-0.8_1

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

syntax highlighting: