def override_template(template, content_type=None):

    request.pecan['override_template'] = template
    if content_type:
        request.pecan['override_content_type'] = content_type
Call within a controller to override the template that is used in
dataset/ETHPy150Open pecan/pecan/pecan/core.py/override_template