Added support for appending template to container

Added support for appending template to container. Used in infinite scrolling scenarios.