templating enhancements for inner templates