{"repo":"BKWLD/laravel-pug","free":true,"listed":false,"github":"https://github.com/BKWLD/laravel-pug","clone":"git clone https://github.com/BKWLD/laravel-pug.git","description":"Pug view adapter for Laravel and Lumen","language":"PHP","stars":156,"topics":["laravel","pug","jade","lumen"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel Pug A small package that adds support for compiling Pug (Jade) templates to Laravel via Pug.php (see complete documentation). Both vanilla php and Blade syntax is supported within the view. This is the documentation for the ongoing version 2.0. Click here to load the documentation for 1.11 Installation First you need composer if you haven't yet: https://getcomposer.org/download/ Now open a terminal at the root of your Laravel project. If it's a new project, create it with: composer create-project --prefer-dist laravel/laravel my-new-project (replace my-new-project with your own project name, see the documentation for further information) Then run: Usage Will now try to load views/my-page.pug first, or views/my-page.blade.pug or fallback to the default blade engine loading views/my-page.blade.php . As with Blade, you can pass variables to your view: Any file with the extension .pug will be compiled as a pug template. Laravel Pug also registers the .pug.blade which also compile blade code once Pug code has been compiled; but we highly recommend you to use the clean and standard extension .pug that will be recognized by most systems. It compiles your Pug templates in the same way as Blade templates; the compiled template is put in your storage directory. Thus, you don't suffer compile times on every page load. In other words, just put your Pug files in the regular views directory and name them like whatever.pug . You reference them in Laravel like normal such as view('ho","default_branch":null,"files":null,"tree":[],"storefront":"/r/BKWLD","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BKWLD/laravel-pug/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}