Opened 5 years ago

Closed 5 years ago

#2180 closed change (fixed)

[cms] Add support for custom Jinja2 functions

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



Currently, we can only define custom filters in the content repository. This leads to weird semantics however, e.g. get_subscription being a filter rather than a function.

What to change

Add a way to define custom functions in the same way custom filters are defined. Functions should be placed under functions/ and export a function function_name.

Change History (3)

comment:1 Changed 5 years ago by trev

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

comment:2 Changed 5 years ago by trev

  • Blocking 662 removed

Given that #2179 took a different route, this is no longer a requirement for #662.

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.