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