Get template pile working and support rendering with data