A Phoenix template engine that enables using Haml syntax for HTML templates in Elixir web applications.
PhoenixHaml is a template engine for the Phoenix web framework that allows developers to use Haml syntax for writing HTML templates in Elixir applications. It replaces the default EEx template engine with Haml, providing a more concise and indentation-based way to generate HTML. The project includes generators for creating Haml-based resources and layouts, streamlining development for teams preferring Haml over EEx.
Elixir developers building web applications with the Phoenix framework who prefer using Haml syntax for HTML templates over EEx. It's particularly useful for teams migrating from Ruby on Rails or other Haml-based ecosystems.
Developers choose PhoenixHaml to leverage Haml's cleaner, more readable syntax in Phoenix applications without sacrificing framework integration. It offers seamless configuration, live reload support, and generators that mimic Phoenix's native tools, making adoption straightforward.
Phoenix Template Engine for Haml
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Configures easily as a template engine in Phoenix's config, allowing .html.haml files to work within the standard rendering pipeline without disruption.
Uses Haml's indentation-based approach to write cleaner, more readable HTML templates, reducing boilerplate compared to EEx.
Includes mix tasks like `mix phoenix_haml.gen.html` that scaffold resources and layouts with Haml templates, speeding up development.
Can be set up for live reloading in development by adding haml to patterns in config/dev.exs, enhancing iterative design workflows.
Depends on the Calliope library for Haml parsing, which, if poorly maintained, could introduce bugs or security vulnerabilities.
Requires careful version matching with Phoenix; using Phoenix's master branch necessitates phoenix_haml's master branch, complicating upgrades and stability.
Haml has a smaller community in Elixir compared to EEx, so support, tutorials, and integrations are less abundant and harder to find.