{"id":19299180,"url":"https://github.com/bmatcuk/pug-brunch-static","last_synced_at":"2026-05-06T13:33:17.041Z","repository":{"id":10971703,"uuid":"67839454","full_name":"bmatcuk/pug-brunch-static","owner":"bmatcuk","description":"Compile static pug files with brunch","archived":false,"fork":false,"pushed_at":"2022-12-10T16:11:54.000Z","size":451,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T08:38:58.813Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bmatcuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-09T23:40:49.000Z","updated_at":"2020-12-26T16:53:37.000Z","dependencies_parsed_at":"2023-01-13T16:15:56.300Z","dependency_job_id":null,"html_url":"https://github.com/bmatcuk/pug-brunch-static","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmatcuk%2Fpug-brunch-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmatcuk%2Fpug-brunch-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmatcuk%2Fpug-brunch-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmatcuk%2Fpug-brunch-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmatcuk","download_url":"https://codeload.github.com/bmatcuk/pug-brunch-static/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240400334,"owners_count":19795333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T23:10:25.962Z","updated_at":"2026-05-06T13:33:17.011Z","avatar_url":"https://github.com/bmatcuk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Release](https://img.shields.io/npm/v/pug-brunch-static.svg)\n\n# pug-brunch-static\nCompile static pug files with brunch.\n\npug-brunch-static is a processor for [html-brunch-static](https://github.com/bmatcuk/html-brunch-static), a [brunch](http://brunch.io/) plugin designed to handle static html files. pug-brunch-static can convert pug files into static html files with html-brunch-static's support for layouts and partial views.\n\nIf you're looking for support for deprecated \"jade\" files, check out [jade-brunch-static](https://github.com/bmatcuk/jade-brunch-static).\n\n## Installation\npug-brunch-static depends on [html-brunch-static](https://github.com/bmatcuk/html-brunch-static), which also depends on [brunch-static](https://github.com/bmatcuk/brunch-static), so, you will need to install all three. The recommended method is via npm:\n\n```bash\nnpm install --save-dev brunch-static html-brunch-static pug-brunch-static\n```\n\nOr manually:\n\n* Add `\"brunch-static\": \"x.y.z\"` to package.json\n* Add `\"html-brunch-static\": \"x.y.z\"` to package.json\n* Add `\"pug-brunch-static\": \"x.y.z\"` to package.json\n* Run `npm install`\n* Alternatively, you may use the latest git version with:\n  * `\"brunch-static\": \"git+ssh://git@github.com:bmatcuk/brunch-static\"`\n  * `\"html-brunch-static\": \"git+ssh://git@github.com:bmatcuk/html-brunch-static\"`\n  * `\"pug-brunch-static\": \"git+ssh://git@github.com:bmatcuk/pug-brunch-static\"`\n\n## Configuration\nAdd pug-brunch-static to your list of html-brunch-static processors:\n\n```coffee\nexports.config =\n  ...\n  plugins: {\n    static: {\n      processors: [\n        require('html-brunch-static')({\n          processors: [\n            require('pug-brunch-static')({\n              fileMatch: 'source/views/home.pug',\n              fileTransform: (filename) =\u003e filename.replace(/static\\.pug$/, '.html')\n            })\n          ]\n        })\n      ]\n    }\n  }\n```\n\nMost options passed to pug-brunch-static are passed, verbatim, to [pug](https://github.com/pugjs/pug), with the exception of:\n\n* **fileMatch** _(default: `/\\.static\\.pug$/`)_\n\n  \u003e _fileMatch_ is an [anymatch](https://github.com/es128/anymatch) that is used to determine which files will be handled by this processor. As an anymatch, it may be a string with globs, a regex, or a function that takes a filename and returns true if it should be handled, or false otherwise. The default will match files that end in `.static.pug`.\n\n* **fileTransform** _(default: `(filename) =\u003e filename.replace(/static\\.pug$/, '.html')`)_\n\n  \u003e _fileTransform_ converts the input filename into an html filename. It takes a filename as input and returns the new filename with the html extension. If you set the _fileMatch_ property above, you'll probably need to set this option as well to ensure that your output files end with the html extension.\n\n## Context and Local Variables\nThe [html-brunch-static's context](https://github.com/bmatcuk/html-brunch-static#context-layouts-and-partials) will be exposed in your pug files as local variables allowing you to use them in your template.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmatcuk%2Fpug-brunch-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmatcuk%2Fpug-brunch-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmatcuk%2Fpug-brunch-static/lists"}