API

These are the objects available in the Velocity context.

$user

Currently logged in user as ccc.rest.dto.UserDto. See UserDTO API

$request

javax.servlet.http.HttpServletRequest

$response

javax.servlet.http.HttpServletResponse

$services

Locator for ContentCreator business services. See ServiceLocator API

$resource

A read-only snapshot of a resource (usually the page) that is being rendered using a template. See ResourceSnapshot API

$random

Instance of java.util.Random.

$math

java.lang.Math.class

$collections

 java.util.Collections.class.

$calendar

java.util.Calendar.class. 

$html

ccc.commons.XHTML.class. Helper methods for working with XHTML.

$uuid

java.util.UUID.class

$enum

ccc.rendering.velocity.Velocity.EnumTools. Velocity tools for helping with Java5 enum's.

$hostname

Hostname.

$dateTool

Apache VelocityTools DateTool

$sortTool

Apache VelocityTools SortTool