def as_bootstrap(form): template = get_template("bootstrap/form.html") c = Context({"form": form}) return template.render(c)