Added '.' support for nested templates