Dynamic reverse template engine