This is Movable Type Plugin that compresses a source code.
The following modes are recognized:
- compress="1" Remove empty lines.
- compress="2" Remove empty lines and white spaces of head of a line.
- compress="3" Remove empty lines and white spaces of head of a line and break lines.
Template:
<mt:Unless compress="1">
<ul>
<li>foo1</li>
<li>foo2</li>
<li>foo3</li>
</ul>
</mt:Unless>
Print:
<ul>
<li>foo1</li>
<li>foo2</li>
<li>foo3</li>
</ul>
Template:
<mt:Unless compress="2">
<ul>
<li>foo1</li>
<li>foo2</li>
<li>foo3</li>
</ul>
</mt:Unless>
Print:
<ul>
<li>foo1</li>
<li>foo2</li>
<li>foo3</li>
</ul>
Template:
<mt:Unless compress="3">
<ul>
<li>foo1</li>
<li>foo2</li>
<li>foo3</li>
</ul>
</mt:Unless>
Print:
<ul><li>foo1</li><li>foo2</li><li>foo3</li></ul>