On Mon, May 10, 2010 at 3:25 PM, Brian McCallister <bri...@skife.org> wrote: > On Mon, May 10, 2010 at 11:02 AM, Dan Poirier <poir...@pobox.com> wrote: >> mod_lua has 8 separate directives for adding hooks using external files >> with Lua code (LuaHookXxxxx) and 8 more for adding the same hooks using >> inline Lua code (<LuaHookXxxxx>). Most of the code to implement these >> is common. >> >> I think it'd be easier to understand - and document - the module if we >> cut these down to two directives, with an additional argument to >> indicate which hook is involved. E.g. change >> >> LuaHookAccessChecker /path/to/script.lua funcname >> LuaHookAuthChecker /path/to/script.lua funcname >> LuaHookCheckUserID /path/to/script.lua funcname >> ... >> >> to >> >> LuaHook AccessChecker /path/to/script.lua funcname >> LuaHook AuthChecker /path/to/script.lua funcname >> LuaHook CheckUserID /path/to/script.lua funcname > > This makes a ton of sense to me.
+1