Add SHAARLI support to view template