示例#1
0
def _get_processors(content_type, processors_conf):
    processors = []
    for processor in processors_conf:
        processor = list(processor)
        if content_type != processor.pop(0):
            continue

        processors.append(get_filter(processor))
    return processors
示例#2
0
def _get_compiler(extension):
    for ext, compiler in settings.COMPILERS.items():
        if ext == extension:
            return get_filter(compiler)