Allow providing extra context to TemplateHook.

Review Request #5582 — Created March 4, 2014 and submitted

Information

Djblets
master
df40254...

Reviewers

Previously, if one wanted to provide additional context to TemplateHook,
it would have to subclass and override render_to_string(). Now, extra
context can be provided to the constructor, and subclasses can
dynamically provide additional context by overriding
get_extra_context().

Made use of this in an extension, which nicely simplified the extension.

david
  1. Looks fine. This needs a corresponding doc change in review board.

  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Loading...