Abstraction layer for templating languages