Opened 7 years ago

Closed 7 years ago

#6132 closed (fixed)

escapejs filter doesn't work

Reported by: Ben Walton <benwalton@…> Owned by: nobody
Component: Template system Version: master
Severity: Keywords: escapejs
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I'm running trunk > 6892.

When running a simple template

{{ var|escapejs }}

I get

Invalid filter: 'escapejs'

Replicated on 3 different machines.

Attachments (2)

6132_patch.js (422 bytes) - added by Ben Walton <benwalton@…> 7 years ago.
6132_patch.diff (422 bytes) - added by Ben Walton <benwalton@…> 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Ben Walton <benwalton@…>

Changed 7 years ago by Ben Walton <benwalton@…>

comment:1 Changed 7 years ago by Ben Walton <benwalton@…>

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Submitted patch. It was missing the register.filter

comment:2 Changed 7 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

(In [6897]) Fixed #6132: note to self: when you add new template tags, you need to remember to actually register them. Thanks, Ben Walton.

Note: See TracTickets for help on using tickets.
Back to Top