Define a global-vars block for all global variable definitions.

Review Request #10954 — Created March 13, 2020 and submitted

chipx86
Review Board
release-4.0.x
reviewboard

This is a simple change that introduces a new global-vars block in the
base template, which child templates can use to register global
variables (through the new {% definevar "..." global %} support in
Djblets). Any global variables defined here will be usable in any other
block in the template, and are a good place to define IDs, URLs, or
blocks of HTML that need to be used in multiple independent blocks.

The new block will be used in an upcoming change shortly.

Made use of this in an upcoming change. Verified that the variables were
usable in other blocks.

Summary
Define a global-vars block for all global variable definitions.
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-4.0.x (3fb503e)
Loading...