A Phoenix template engine that enables writing HTML templates using the concise Slime (Slim) syntax.
Phoenix Slime is a template engine for the Phoenix web framework that allows developers to write HTML templates using the Slime (or Slim) syntax. It provides a concise, whitespace-sensitive alternative to EEx templates, reducing verbosity and improving readability while maintaining full compatibility with Phoenix features, including LiveView.
Elixir developers building web applications with the Phoenix framework who prefer a more minimal and expressive template syntax over traditional EEx.
Developers choose Phoenix Slime for its clean syntax that cuts down on HTML boilerplate, seamless integration with Phoenix (including generators and live reload), and support for modern features like LiveView, making template development faster and more enjoyable.
Phoenix Template Engine for Slime
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Slime's indentation-based syntax eliminates closing tags and reduces boilerplate, making HTML templates cleaner and more readable, as emphasized in the project description.
Acts as a drop-in replacement for EEx with easy configuration in config.exs, including dedicated LiveView support via the slimleex engine.
Includes custom mix tasks like phx.gen.html.slime for generating Slime-based resources and layouts, speeding up template creation.
Configurable to watch .slim and .slime files for live reloading during development, enhancing the workflow as shown in the README setup.
Indentation errors can lead to subtle, hard-to-debug template issues, which are less common with EEx's more explicit syntax.
Compared to EEx, Slime has a niche community, resulting in fewer tutorials, plugins, and third-party integrations for Phoenix projects.
Requires manual setup for live reload and generator extensions, adding steps beyond standard Phoenix EEx usage.