{"id":14967717,"url":"https://github.com/acidjazz/larpug","last_synced_at":"2025-10-25T21:31:46.090Z","repository":{"id":56940103,"uuid":"63917013","full_name":"acidjazz/larpug","owner":"acidjazz","description":"Pug templating adapter for laravel and lumen","archived":false,"fork":false,"pushed_at":"2017-10-19T15:19:38.000Z","size":87,"stargazers_count":42,"open_issues_count":3,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-31T10:36:10.966Z","etag":null,"topics":["blade","jade","laravel","lumen","objectus","pug"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acidjazz.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-07-22T02:27:52.000Z","updated_at":"2023-09-08T17:12:54.000Z","dependencies_parsed_at":"2022-08-21T06:20:49.103Z","dependency_job_id":null,"html_url":"https://github.com/acidjazz/larpug","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/acidjazz%2Flarpug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acidjazz%2Flarpug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acidjazz%2Flarpug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acidjazz%2Flarpug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acidjazz","download_url":"https://codeload.github.com/acidjazz/larpug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238212408,"owners_count":19434955,"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":["blade","jade","laravel","lumen","objectus","pug"],"created_at":"2024-09-24T13:38:30.557Z","updated_at":"2025-10-25T21:31:45.738Z","avatar_url":"https://github.com/acidjazz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](media/pug128.png)](https://github.com/pugjs/pug)\n![](media/and128.png)\n[![](media/laravel128.png)](https://laravel.com)\n![](media/plus128.png)\n[![](media/lumen128.png)](https://lumen.laravel.com)\n\nAllows you to use native [Pug](https://pugjs.org/) (formerly [Jade](https://github.com/scrooloose/syntastic/pull/1704)) seamlessly in [Laravel 5](http://laravel.com) and [Lumen](http://lumen.laravel.com)\n\n[![Total Downloads](https://poser.pugx.org/acidjazz/larpug/downloads)](https://packagist.org/packages/acidjazz/larpug)\n[![Latest Stable Version](https://poser.pugx.org/acidjazz/larpug/v/stable)](https://packagist.org/packages/acidjazz/larpug)\n[![License](https://poser.pugx.org/acidjazz/larpug/license)](https://packagist.org/packages/acidjazz/larpug)\n[![Build Status](https://travis-ci.org/acidjazz/larpug.svg?branch=master)](https://travis-ci.org/acidjazz/larpug)\n[![Dependency Status](https://www.gemnasium.com/badges/github.com/acidjazz/larpug.svg)](https://www.gemnasium.com/github.com/acidjazz/larpug)\n[![codecov](https://codecov.io/gh/acidjazz/larpug/branch/master/graph/badge.svg)](https://codecov.io/gh/acidjazz/larpug)\n\n[![Join the chat at https://gitter.im/acidjazz/larpug](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/acidjazz/larpug?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n# Requirements\n\n* [NodeJS v6.x](https://nodejs.org/en/)\n* [npm v3.x](https://www.npmjs.com/)\n\n\n# Installation\n\nRequire this package with Composer\n\n```bash\ncomposer require acidjazz/larpug\n```\n\nInstall the needed node modules to run pug\n```bash\nnpm i --prefix vendor/acidjazz/larpug/node/\n```\n\n## Laravel\n\nOnce Composer has installed or updated your packages you need to register larpug with Laravel itself. Open up config/app.php and find the providers key, towards the end of the file, and add 'larpug\\LarpugServiceProvider', to the end:\n\n```php\n'providers' =\u003e [\n  ...\n    Larpug\\ServiceProvider::class,\n],\n```\n## Lumen\n\nFor usage with [Lumen](http://lumen.laravel.com), add the service provider in `bootstrap/app.php`. \n\n```php\n$app-\u003eregister(Larpug\\ServiceProvider::class);\n```\n\n# Usage\n\nUsing this is exactly the same way as using Blade templates, place your pug files in your `views` folder (usually in `resources/views`) and render them using `view()`\n\n```php\nnamespace App\\Controllers;\n\nclass Pages extends Controller\n{\n  public function index()\n  {\n    return view('pages.index', ['name' =\u003e 'kevin', 'title' =\u003e 'test title']);\n  }\n\n}\n```\n\nThis will look for `resources/views/pages/index.pug` \n\n```pug\ndoctype\nhtml(lang='en')\n  head\n    title Title: #{self.title}\n  body\n    .page.index \n      .name=self.name\n```\n\nWhich will render something like\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003ctitle\u003eTitle: test title \u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdiv class=\"page index\"\u003e\n      \u003cdiv class=\"name\"\u003eKevin\u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/body\u003e\n\u003c/html\u003e';\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facidjazz%2Flarpug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facidjazz%2Flarpug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facidjazz%2Flarpug/lists"}