feat(templating): lots of progress on template variable context specific formats, #2918, all elasticsearch / lucene use cases seem to work now