Source

reviewanywhere / views.py

Full commit
from functools import partial

from django.shortcuts import render_to_response

from reviewanywhere import get_bookmarklet

def generic_view(template, request):
    data = {
        'bookmarklet': get_bookmarklet(request),
    }

    return render_to_response(template, data)

view_index = partial(generic_view, "index.html")

view_example = partial(generic_view, "example.html")