def test_without_rc(): request = get_request() (template, layout, gibberish, ctx) = get_test_template_bits(request) assert not add_resource(ctx, "yes", "hello.js") content1 = "<html>" content2 = inject_resources(ctx, content1) assert content1 == content2
def _postprocess(self, context, content): for inject_func in get_provide_objects("xtheme_resource_injection"): if callable(inject_func): inject_func(context, content) add_edit_resources(context) content = inject_resources(context, content) return content
def _postprocess(self, context, content): # TODO: Add a hook here for addons to inject resources without plugins add_edit_resources(context) content = inject_resources(context, content) return content