5.2.0
Virtual modules
Module::factory() creates a module from code and renders it with its regular snippet, mirroring Kirby's Block::factory():
echo Module::factory([
'type' => 'text',
'content' => ['textarea' => 'Hello from code']
])->toHtml();Modules::factory() is the plural equivalent.
Forgiving type names
templates, templatesIgnore and default now accept both text and module.text, so you no longer need to remember which form goes where.
Fixes
maxandminnow work more reliably- Changing a module's type now respects custom content file extensions