Render the esi tags with a template to be able to customize it depending...

... on the context (e.g. pass in GET vars).