{"id":20654938,"url":"https://github.com/dreerr/templateenginepug","last_synced_at":"2025-04-19T11:51:52.441Z","repository":{"id":56972113,"uuid":"83594678","full_name":"dreerr/TemplateEnginePug","owner":"dreerr","description":"Pug templates for the TemplateEngineFactory","archived":false,"fork":false,"pushed_at":"2022-10-15T22:00:10.000Z","size":674,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T07:33:24.320Z","etag":null,"topics":["jade-templates","php","processwire","pug","pug-template-engine","pug-templates"],"latest_commit_sha":null,"homepage":"http://modules.processwire.com/modules/template-engine-pug/","language":"PHP","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/dreerr.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":"2017-03-01T19:49:31.000Z","updated_at":"2022-10-15T21:59:15.000Z","dependencies_parsed_at":"2022-08-21T07:10:27.658Z","dependency_job_id":null,"html_url":"https://github.com/dreerr/TemplateEnginePug","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreerr%2FTemplateEnginePug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreerr%2FTemplateEnginePug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreerr%2FTemplateEnginePug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreerr%2FTemplateEnginePug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreerr","download_url":"https://codeload.github.com/dreerr/TemplateEnginePug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249687944,"owners_count":21311138,"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":["jade-templates","php","processwire","pug","pug-template-engine","pug-templates"],"created_at":"2024-11-16T18:07:22.756Z","updated_at":"2025-04-19T11:51:52.421Z","avatar_url":"https://github.com/dreerr.png","language":"PHP","readme":"# TemplateEnginePug\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![ProcessWire 3](https://img.shields.io/badge/ProcessWire-3.x-orange.svg)](https://github.com/processwire/processwire)\n\nA ProcessWire module adding [Pug](https://github.com/pug-php/pug) to the [TemplateEngineFactory](https://github.com/wanze/TemplateEngineFactory).\n\n## Requirements\n\n* ProcessWire `3.0` or newer\n* TemplateEngineFactory `2.0` or newer\n* PHP `7.0` or newer\n* Composer\n\n\u003e The `1.x` version of this module is available on the [1.x branch](https://github.com/dreerr/TemplateEnginePug/tree/1.x).\nUse this version if you still use _TemplateEngineFactory_ `1.x`.\n\n## Installation\n\nExecute the following command in the root directory of your ProcessWire installation:\n\n```\ncomposer require dreerr/template-engine-pug:^2.0\n```\n\nThis will install the _TemplateEnginePug_ and _TemplateEngineFactory_ modules in one step. Afterwards, don't forget\nto enable Pug as engine in the _TemplateEngineFactory_ module's configuration.\n\n## Configuration\n\nThe module offers the following configuration:\n\n* **`Template files suffix`** The suffix of the Pug template files, defaults to `pug`.\n* **`Provide ProcessWire API variables in  templates`** API variables (`$pages`, `$input`, `$config`...)\nare accessible in Pug.\n* **`Output indented HTML`** If checked, the output is rendered as indented HTML.\n* **`Debug Output`** When an error occurs at render time, you will get a complete stack trace including line and offset in the original pug source file.\n* **`Enable Profiler`** When set to true, it will output on render a timeline you can inspect in your browser to see wich token/node take longer to lex/parse/compile/render.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreerr%2Ftemplateenginepug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreerr%2Ftemplateenginepug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreerr%2Ftemplateenginepug/lists"}