Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ilikerobots/b0fac1ba4ec06bb4eab71c8eb7afdee5 to your computer and use it in GitHub Desktop.

Select an option

Save ilikerobots/b0fac1ba4ec06bb4eab71c8eb7afdee5 to your computer and use it in GitHub Desktop.
from typing import Dict
from django import template
register = template.Library()
@register.inclusion_tag('lazy_render_bundle.html', takes_context=False)
def lazy_render_bundle(bundle: Dict[str, str]) -> Dict[str, Dict[str, str]]:
return {'bundle': bundle}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment