mthaml/mthaml-bundle
A Symfony bundle that integrates MtHaml, the PHP implementation of the HAML template language. Write concise, indentation-based templates that compile to clean HTML, with seamless integration into Symfony's templating system, view helpers, and caching.
.haml templates, this bundle supports a "keep the lights on" posture: retain HAML rendering while a template-layer migration (to Twig on Symfony, or Blade on Laravel) is scoped and funded. It does not support a "standardize on HAML" decision and should never appear in a forward-looking architecture deck.Consider it only when all of the following hold:
Look elsewhere — decisively — when:
EngineInterface/templating world that was removed after 2.x, so it inherits an unsupported baseline.For executives (one paragraph): This is a small, single-maintainer Symfony2 bundle for rendering HAML templates. It is not compatible with our Laravel stack, and it targets a framework generation that is no longer supported. Its ecosystem signals — 38 stars, zero dependent packages — tell us there is no community or vendor backing behind it. Recommendation: do not adopt for any new or forward-looking work. If we encounter it inside an inherited or acquired codebase, treat it as a legacy liability to be contained and scheduled for migration, not as a component to build on. Budget a bounded migration to Twig or Blade rather than ongoing investment in HAML.
For engineering (the practical brief): Not a Laravel dependency — no service provider, no Blade compiler, no integration surface. If you inherit a Symfony2 app using it, do three things: (1) pin the version and vendor it so upstream disappearance cannot break builds; (2) wrap rendering behind a single template-service boundary so the dialect is swappable; (3) open a migration ticket to Twig/Blade with a template inventory as the estimate basis. Do not extend its usage to new templates, and do not let HAML spread into new modules. If a HAML requirement genuinely surfaces on a Laravel initiative, spike the underlying mthaml/mthaml compiler behind a thin view adapter with precompiled, cached output — never install the Symfony bundle — and keep Blade as the documented fallback and exit plan.
How can I help you explore Laravel packages today?