Skip to content

History of commits

4476 commits

build(vite): take the entry points from the theme manifests

The list of inputs repeated what themes/<name>/theme.php already declares, so a new theme had to be added in two places and the build config was the one people forgot. It is derived from the manifests now, and a manifest naming a file that does not exist fails the build instead of producing a bundle nobody asked for. CHANGELOG gains the breaking change for theme authors: what Plates constructs map to in Twig, where the templates of a theme live now, and the manifest.
simba77 8 Th08 năm 2026 10:04 Branch: 10.x 922dd24

docs(theme): show the rest of what a theme can override

The example theme explained how to replace a template of a module and stopped there. It now also lists the layouts, components, system pages, the admin markup and the emails, and how a theme declares its own build entry point. Includes the documentation submodule, updated for Twig.
simba77 8 Th08 năm 2026 09:38 Branch: 10.x 47b919f

docs(agents): rewrite the view rules for Twig

Plates is gone, so the guides that described it are replaced rather than patched. - twig-migration.md becomes templates.md: where a template lives, the three environments, how a page is written, components, the traps, verification - escaping.md is about autoescape now: Markup for markup by contract, |raw as a signal, the contexts autoescape does not cover, and no escaping baked into data - localization.md and its checklist gain the case a migration kept turning up: a tag that exists only in the translation, which autoescape prints as text - new-module.md, pagination.md, architecture.md, the security checklist and AGENTS.md lose their Plates references; the project structure section matches the public/ docroot
simba77 8 Th08 năm 2026 09:28 Branch: 10.x 44e98b2

chore(view): remove Plates

Nothing renders through it since the installer moved, so the engine, its factory, its four extensions, the Plates renderer, the delegating renderer, the bridge extension and the mobicms/render dependency are gone. - FilePresenter takes AssetResolver and the news comments take AssetRuntime, the services that replaced the Plates extensions they used - BaseController is deleted: nothing extended it - the tests of the removed classes go with them, and the bridge case leaves TwigEnvironmentTest
simba77 7 Th08 năm 2026 23:48 Branch: 10.x f6c5dad

refactor(install): move the installer to Twig

The installer gets the environment the plan reserved for it: it runs before there is a site, so its templates see no visitor, no csrf token and no modules, only the theme it ships with. - the five steps and the layout become @install/*.twig; the namespace comes from InstallTemplatePaths, so a theme can override any of them - the steps pass their data explicitly instead of pushing it into a shared engine with addData() - the repeated field markup of steps 3 and 4 became a macro, and the field errors go through the component the rest of the site uses Nothing renders Plates any more; the package stays until the classes around it are removed.
simba77 7 Th08 năm 2026 23:44 Branch: 10.x 98c0ccd

refactor(view): move the error pages and the pagination to Twig, drop Plates from HTTP

The last templates Plates still served become @theme/pages/errors/{403,404}.twig and @theme/components/pagination.twig, so nothing in the HTTP layer names a Plates template any more. - ExceptionResponseFactory, Pagination and PaginationFactory take RendererInterface; pageNotFound() and PageNotFoundException default to the Twig page - RendererInterface is TwigRenderer now: the Plates engine, its renderer, the bridge extension and the delegating renderer leave the container, and ControllerContext stops registering template folders - AdminControllerContext loses the four counter queries it ran on every request of the panel for a sidebar that is rendered by AdminRuntime now - themes/admin is deleted whole and themes/default/templates/system with it; the installer keeps its own engine, so the package stays for now
simba77 7 Th08 năm 2026 23:33 Branch: 10.x fe2d350

refactor(mail): give the emails their own Twig environment

The six email templates move to @theme/emails/*.twig and are rendered by an environment of their own: a message has no request behind it, so nothing of the visitor, the csrf token or the build assets is offered there, and every address it prints is absolute. - MailRenderer takes the locale as an argument and puts the translator of the process back afterwards, so a batch of messages in different languages leaves nothing behind; EmailSender no longer mutates a shared engine - a row queued before this change still names its Plates template and is mapped to the Twig one of the same name - twig:lint, twig:compile and i18n:scan pick the environment a template belongs to, otherwise the mail functions read as unknown to them
simba77 7 Th08 năm 2026 23:22 Branch: 10.x 946dd40

refactor(comments): move the comment pages to Twig

The legacy Comments printed four Plates templates; they become @theme/pages/comments-{list,reply,delete}.twig plus @theme/components/comments-form.twig, and the class renders through RendererInterface. - the author name, the address and the browser were printed unescaped and now go through autoescape; the comment text and the answer keep their markup as Twig\Markup - the URLs of the actions carried &amp; inside the data, which the template escaped a second time; they are built raw now and the redirect no longer has to undo the escaping - the templates_namespace argument is gone: all three callers passed 'system', and after the themes merged there is nothing left to choose - whether the address of an author may be shown is decided by the class, not by the Plates $user global
simba77 7 Th08 năm 2026 23:06 Branch: 10.x 74c27a5

refactor(view): render access errors through Twig

The access middlewares and the error renderers took Johncms\System\View\Render and named Plates templates; they now take RendererInterface and name Twig ones. - the admin gates render @admin/pages/errors/403.twig, which is what the plan reserved for a middleware that knows it guards the panel - the public gates and both error renderers render @theme/pages/result.twig - ForumErrorRenderer::render() and DownloadsErrorRenderer::render() become response(), since they no longer wrap the legacy engine - the error branches of FileCommentsController move too; the page itself stays on Plates, because the legacy Comments prints its own layout
simba77 7 Th08 năm 2026 22:58 Branch: 10.x a505b15

refactor(contacts): move the admin pages to Twig

The four admin templates of the module become @contacts/admin/*.twig and the four controllers return ViewResponse. - the status filters of the list and the multilingual fields of the settings were built in the templates and now come from the controllers - the message text goes through the nl2br filter, which escapes before it inserts the breaks
simba77 7 Th08 năm 2026 22:32 Branch: 10.x 9f1ec00