Move verification of template variables to a inline function declared before the for loop they are used in, rather than inline the for loop
Move verification of template variables to a inline function declared before the for loop they are used in, rather than inline the for loop

cloudkick/cast,cloudkick/cast,cloudkick/cast,cloudkick/cast