1 2 3 4 5 6
rule("hello") on_load(function (target) -- the addon code refers to its own resources with `@self` import("@self.greeting") print("custom-rule: %s", greeting(target:name())) end)