jbe/bsw@0: --[[-- jbe/bsw@0: path = -- string containing a path to an action jbe/bsw@0: encode.action_file_path{ jbe/bsw@0: module = module, -- module name jbe/bsw@0: action = action -- action name jbe/bsw@0: } jbe/bsw@0: jbe/bsw@0: This function returns the file path of an action with a given module name and action name. Both module name and action name are mandatory arguments. jbe/bsw@0: jbe/bsw@0: --]]-- jbe/bsw@0: jbe/bsw@0: function encode.action_file_path(args) jbe/bsw@0: return (encode.file_path( jbe/bsw@0: request.get_app_basepath(), jbe/bsw@0: 'app', jbe/bsw@0: request.get_app_name(), jbe/bsw@0: args.module, jbe/bsw@0: '_action', jbe/bsw@0: args.action .. '.lua' jbe/bsw@0: )) jbe/bsw@0: end