modxSmarty β Smarty as a MODX presentation layer
modxSmarty emerged in late 2012 as a practical evolution of the phpTemplates idea. Instead of a universal mechanism for connecting any templating engine, it directly solved the most in-demand scenario by integrating Smarty with MODX.
Smarty templates retained access to $modx, the MODX API, snippets, chunks, settings, and other system elements. At the same time, the templates themselves could be stored in files and use the familiar tools of a full-fledged templating engine instead of building the entire frontend using the MODX parser syntax.
Architecturally, this made it easier to separate the presentation from application logic. This approach worked exceptionally well when paired with modxSite: Smarty handled the presentation layer, while reusable operations and data retrieval were gradually concentrated into processors.
Today, this separation is primarily of interest in the context of modernizing legacy projects. If the application logic genuinely remained outside the Smarty templates, the old frontend does not need to be migrated; instead, a new interface is created while the existing backend operations continue to function.
modxSmarty is part of the general Fi1osof component ecosystem. The component archive and API description have been preserved in the official MODX repository: https://extras.modx.com/package/modxsmarty