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
Categories
LibrariesFollow Enlive
Other Useful Business Software
Demo Series - Small Business Backup By Veeam
Watch this on-demand demo series and learn how to protect your Microsoft 365 data with clear, simple, actionable steps that are easy to implement for businesses of all sizes.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Enlive!