Fast, powerful and easily extensible template processing system