Papercraft

Functional HTML Templating for Ruby

Papercraft.html {
  h1 "Hello from Papercraft!"
}
DocumentationSource Code

Easy to write & read

Write your HTML templates in plain Ruby. Use beautiful syntax for generating HTML.

Layouts & Components

Compose and reuse your templates for layouts, components and partials.

Functional Approach

Papercraft’s functional approach helps you write reusable, self-contained templates.

Fast Rendering

Enjoy best-in-class performance using Papercraft’s optimizing compiler.

Web Framework Integration

Use Papercraft with your favorite web framework: Hanami, Roda, and coming soon: Rails.

Security by Default

Prevent cross-site scripting attacks with Papercraft’s automatic HTML escaping.