CouchCMS Addon. Adds a new <cms:spaceless>-Tag to trim redundant spaces from start an end of lines. Can remove EOL, too.

This addon makes available a new <cms:spaceless>-Tag. It is very simple to use:
Code: Select all
<cms:spaceless>
<script>
    console.log("Hello world");
</script>
</cms:spaceless>

The generated code looks like:
Code: Select all
<script>console.log("Hello world");</script>


You can get more information on https://github.com/SimonWpt/spaceless
or download the addon as a zip-file.