@register.inclusion_tag('waliki/entry_point.html', takes_context=True)
def entry_point(context, block_name):
    from waliki.plugins import get_plugins
    includes = []
    for plugin in get_plugins():
        template_name = 'waliki/%s_%s.html' % (plugin.slug, block_name)
        try:
            # template exists
            template.loader.get_template(template_name)
            includes.append(template_name)
        except template.TemplateDoesNotExist:
            continue
    context.update({'includes': includes})
    return context
include an snippet at the bottom of a block, if it exists
dataset/ETHPy150Open mgaitan/waliki/waliki/templatetags/waliki_tags.py/entry_point