Template supporting is checked either 'document' object or parameter.
The functionality to activate templates passing the element selector, parent selector and array of attributes is implemented.