FindSoftware

grunt-flats

Grunt task that renders static HTML pages from Mustache-style partials and layouts.

grunt-flats is a Grunt task that renders Mustache-style partials and layouts into static HTML pages. It reads a master page, layouts and partials from a _templates folder by default and compiles each layout into a destination directory. Partials can be nested, take their own data object, and carry default values. The task is installed as a development dependency of a project that already uses Grunt and is configured in the Gruntfile under a flats key.

Worth knowing

On each build the task removes every .html file from the destination directory, except the master page when it sits there.

Identity

Status
Stub
Maintainer
Adam Duncan3
Maintained by
Individual
First release
20145

Rendering and deploy

Runs as
Static files2
Rendering
Static output2
Install with
npm install --save-dev2

Releases

Current major version
Pre-1.05
Last release
2014-12-155

Adoption

GitHub stars
121
npm downloads a week
37
Contributors
16
Dependent repositories
38
Dependent packages
28

Why these figures do not compare

Sources

  1. 2026-10-22: links, Written in, License, GitHub stars
    api.github.com/repos/adamduncan/grunt-flats
  2. 2026-10-22: links, Categories, Built on, Install with, Rendering, Runs as, Templating
    github.com/adamduncan/grunt-flats/blob/master/README.md
  3. 2026-10-22: Maintainer, License model
    raw.githubusercontent.com/adamduncan/grunt-flats/master/LICENSE
  4. 2026-10-22: Runtime, Minimum runtime
    raw.githubusercontent.com/adamduncan/grunt-flats/master/package.json
  5. 2026-10-22: First release, Current major version, Last release
    registry.npmjs.org/grunt-flats
  6. 2026-10-22: Contributors
    api.github.com/repos/adamduncan/grunt-flats/contributors
  7. 2026-10-22: npm downloads a week
    api.npmjs.org/downloads/point/last-week/grunt-flats
  8. 2026-10-25: Dependent repositories, Dependent packages
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/grunt-flats

Last reviewed · Updated · Listed since Edit on GitHubThis page as markdownas JSON