Module:Mooc/TypeHandler/doc

=TypeHandler= This module stores information about classes responsible to handle a MOOC item type.

constructor (init)
Parameters: Note: Paths are threaten like in module loading.
 * [ ] type: MOOC item type this handler is resposible for
 * [ ] parserPath: path to the parser class
 * [ ] templatePath: path to the template

Example: local lessonHandler = TypeHandler(lesson, "Module:Mooc/Data/Lesson", "Module:Mooc/Template/Lesson")

getParser
Returns: parser class that gets loaded if not preloaded in Lua yet

getTemplate
Returns: template class that gets loaded if not preloaded in Lua yet