I was thinking it might be neat if the `xxx_by_lua_file` directives
took an optional function name that was called.
syntax: xxx_by_lua_file <path-to-lua-script> <opt-func-name>
That would allow the same Lua file to be used in a couple of different
locations. For example:
location /foo
{
content_by_lua_file 'file.lua' 'do_foo_things';
}
location /bar
{
content_by_lua_file 'file.lua' 'do_bar_things';
}
I have some files that share common functions. They're small enough it
feels silly to make a module, but enough to be a pain to duplicate.
Just a thought ...