template engine based on controller generated arrays, allow clean template with recursive capability