def view(tpl_name, **defaults):
    def decorator(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            result = func(*args, **kwargs)
            if isinstance(result, (dict, DictMixin)):
                tplvars = defaults.copy()
                tplvars.update(result)
                return template(tpl_name, **tplvars)
            return result
        return wrapper
    return decorator
True if the REST API is supported for data sources
dataset/ETHPy150Open adampresley/bottlepy-bootstrap/app/bottle.py/view--crossover with--dataset/ETHPy150Open hydroshare/hydroshare2/ga_resources/drivers/__init__.py/Driver.supports_rest