For Evolution I’m using plugin (http://modx.net.ua.localhost/en/components/gettemplate
) assigned to "OnLoadWebDocument" event.
It solves problem with managing keywords and metatags from MODx and some problems with caching snippets called from template.
Now my template code in MODx looks like:
And template itself is stored at assets/templates/mytemplate/main.tpl