Rewritten static page controller

It now works with the RemoveWhitespace attribute