def METHOD_NAME(request, resource_slug):
    """View for a specific resource in the resources application.
    Args:
        request: HttpRequest object.
        resource_slug: The slug of the requested resource.
    Returns:
        HTML response of webpage, 404 if not found.
    """
    METHOD_NAME = get_object_or_404(Resource, slug=resource_slug)
    context = dict()
    generator = get_resource_generator(METHOD_NAME.generator_module)
    context["options_html"] = get_options_html(generator.get_options(), generator.get_local_options(), request.GET)
    context["resource"] = METHOD_NAME
    context["debug"] = settings.DEBUG
    context["grouped_lessons"] = group_lessons_by_age(METHOD_NAME.lessons.all())
    context["copies_amount"] = settings.RESOURCE_COPY_AMOUNT
    context["resource_thumbnail_base"] = get_thumbnail_base(METHOD_NAME.slug)
    return render(request, "resources/resource.html", context)