This now mimics the way this is (safely) done in the sequence module [1].
References:
- [1] 5f94a082ce/common/lib/xmodule/xmodule/seq_module.py (L657-L658)
common ------ This directory contains common code shared between LMS and CMS, such as Mako templates, CSS, and Coffescript.