Template rendering engine using HTML attributes