Check out the videos from Jamstack Conf Virtual, October 6-7. Watch the presentations

Harp

4893 stars
293 forks
21 issues
Home page
http://harpjs.com/
Repository
sintaxi/harp
Twitter
@HarpWebServer
Language:
JavaScript
License:
MIT
Templates:
EJS, Jade

Harp is a static web server that also serves Jade, Markdown, EJS, Less, Stylus, Sass, and CoffeeScript as HTML, CSS, and JavaScript without any configuration. It supports the beloved layout/partial paradigm and it has flexible metadata and global objects for traversing the file system and injecting custom data into templates. Optionally, Harp can also compile your project down to static assets for hosting behind any valid HTTP server.

Why?

Pre-compilers are becoming extremely powerful and shipping front-ends as static assets has many upsides. It's simple, it's easy to maintain, it's low risk, easy to scale, and requires low cognitive overhead. I wanted a lightweight web server that was powerful enough for me to abandon web frameworks for dead simple front-end publishing.

Features

  • easy installation, easy to use
  • fast and lightweight
  • robust (clean urls, intelligent path redirects)
  • built in pre-processing
  • first-class layout and partial support
  • built in LRU caching in production mode
  • can export assets to HTML/CSS/JS
  • does not require a build steps or grunt task
  • fun to use

Supported Pre-Processors

Language Superset Whitespace Sensitive
HTML EJS Jade, Markdown
CSS LESS, Sass (SCSS) Stylus
JavaScript (TBD) CoffeeScript

Resources

Find more static site generators.