Initializing template with an empty object if no context is provided.

Signed-off-by: David Arbuckle <dintlu@gmail.com>
Replacing tabs with spaces throughout.

Signed-off-by: David Arbuckle <dintlu@gmail.com>