Horrorshow Rs

screenshot of Horrorshow Rs
html

A macro-based html builder for rust

Overview

Horrorshow is a macro-based HTML templating library that is compatible with stable Rust. It requires Rust version 1.48 or higher. The library is designed to degrade gracefully when compiled without the standard library (std) or the allocation library (alloc).

Features

  • Degrades Gracefully: The crate can be compiled without std or alloc, and it will still function, albeit with some limitations.
  • Compatible with alloc: When compiled with alloc library, the Template::write_to_io() method is available for rendering templates to an output stream.
  • Compatible with core: When compiled with just the core library, the RenderBox type is not available, and only the Template::write_to_fmt() method for rendering templates to a formatted string is available.
html
HTML

HTML templates are pre-designed and pre-built web pages that can be customized and used as a basis for building websites. They often include common elements such as headers, footers, menus, and content sections, and can be easily edited using HTML and CSS to fit specific branding and content needs.