In the previous commit `js_module_name = None` was removed from HTMLSnippet class, because it's not being used by this class, or the classes that inherit from it. But `js_module_name` is used in MakoTemplateBlockBase. Not all classes that inherit from MakoTemplateBlockBase define this attribute, since the same classes inherit from HTMLSnippet class, which used to provide a fallback for this attribute. To prevent `AttributeError`, defining the default value of `None` in MakoTemplateBlockBase.
2.8 KiB
2.8 KiB