Opened 5 years ago

Closed 5 years ago

#2179 closed change (fixed)

[cms] Give Jinja2 templates a way to set global parameters

Reported by: trev Assignee: trev
Priority: P3 Milestone:
Module: Sitescripts Keywords:
Cc: Blocked By:
Blocking: #662 Platform: Unknown
Ready: yes Confidential: no
Tester: Verified working:
Review URL(s):

http://codereview.adblockplus.org/4923768585584640/

Description (last modified by trev)

Background

Currently, Jinja2 templates see global parameters like title as variable in their scope. However, changes to these parameters have no consequences.

What to change

Make sure that all exported variables of a template (meaning all variables defined at the top level and with variable names not prefixed with an underscore) are considered updates to the params dictionary. So setting or changing the title variable will actually make the new value visible in other templates.

Change History (3)

comment:1 Changed 5 years ago by trev

  • Priority changed from Unknown to P3
  • Review URL(s) modified (diff)
  • Status changed from new to reviewing

comment:2 Changed 5 years ago by trev

  • Description modified (diff)

comment:3 Changed 5 years ago by trev

  • Resolution set to fixed
  • Status changed from reviewing to closed
Note: See TracTickets for help on using tickets.