Web Mode

screenshot of Web Mode

web template editing mode for emacs

Overview

web-mode.el is a major mode for editing web templates in Emacs. It is designed for editing HTML files that contain embedded parts (CSS/JavaScript) and blocks that are rendered by client or server-side engines. It is compatible with various template engines including PHP, JSP, ASP, Django, Twig, Jinja, Mustache, ERB, FreeMarker, Velocity, Cheetah, Smarty, CTemplate, Mustache, Blade, ErlyDTL, Go Template, Dust.js, Google Closure (Soy), React/JSX, AngularJS, ejs, and Nunjucks. More information is available on the official website at https://web-mode.org/.

Features

  • Compatibility: web-mode.el is compatible with a wide range of template engines, making it a versatile choice for web development.
  • Embedded Parts Editing: The mode allows for editing embedded parts such as CSS and JavaScript within HTML files, providing a seamless editing experience.
  • Block Rendering Support: web-mode.el supports rendering blocks that are processed by client or server-side engines, ensuring accurate representation of the final output.