def get_environment(paths):
    loader = FileSystemLoader(paths)
    environment = Environment(loader=loader, lstrip_blocks=True, trim_blocks=True)
    for (filter_name, filter) in FILTERS.items():
        environment.filters[filter_name] = filter
    for (global_name, global_value) in GLOBALS.items():
        environment.globals[global_name] = global_value
    return environment
def get_environment(paths):
    loader = FileSystemLoader(paths)
    environment = Environment(loader=loader, lstrip_blocks=True, trim_blocks=True)
    for (filter_name, filter) in FILTERS.items():
        environment.filters[filter_name] = filter
    for (global_name, global_value) in GLOBALS.items():
        environment.globals[global_name] = global_value
    return environment