Enlive is a Clojure library for HTML templating, transformation, and scraping, supporting composable manipulation of HTML/XML in a functional style. It allows selecting, transforming, and generating HTML fragments using CSS selectors, and supports server-side template composition, dynamic pages, and content rewriting. By default selector-transformation pairs are run sequentially. When you know that several transformations are independent, you can now specify (as an optimization) to process them in lockstep. Note that this doesn't work with fragments selectors. Transformations are now slightly restricted in their return values: a node or a collection of nodes (instead of freely nested collections of nodes).

Features

  • CSS selector queries to locate nodes in HTML / XML DOM
  • Transformation functions to rewrite, insert, remove, or modify content in a DOM tree
  • Template composition: reusing HTML fragments and templates
  • Server-side rendering / templating with functional mapping over data
  • HTML scraping / data extraction from external pages
  • Integration with Ring / web frameworks in the Clojure ecosystem

Project Samples

Project Activity

See All Activity >

Categories

Libraries

Follow Enlive

Enlive Web Site

Other Useful Business Software
Go from Code to Production URL in Seconds Icon
Go from Code to Production URL in Seconds

Cloud Run deploys apps in any language instantly. Scales to zero. Pay only when code runs.

Skip the Kubernetes configs. Cloud Run handles HTTPS, scaling, and infrastructure automatically. Two million requests free per month.
Try it free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Enlive!

Additional Project Details

Registered

2025-09-24