You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Tip: How to minify your code

As the actual file size of the html-layer becomes more and more important, you've probably looked for ways to minify your code somehow. Good news - by combining a few functions in RPL its actually possible.

The solution is to combine <#join> and <#compress> - so wrap your html document like this:

<#compress>

<#join>

<html>...</html>

</#join>

</#compress>

Voila!

A different approach to this - and one I'd recommend is to create a minify macro like this and store it in a separate document content library:

<#macro minify>

  <#if MINIFY = "ON">

  <#compress>

  <#join>

  <#nested>

  </#join>

  </#compress>

  <#else>

  <#nested>

  </#if>

</#macro>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!