{"id":22370140,"url":"https://github.com/elquimista/cakephp-pug","last_synced_at":"2026-03-10T06:02:37.659Z","repository":{"id":56954306,"uuid":"49014691","full_name":"elquimista/cakephp-pug","owner":"elquimista","description":":cake: Pug Template Engine Plugin for CakePHP 3, powered by Tale Jade for PHP","archived":false,"fork":false,"pushed_at":"2017-02-27T03:17:41.000Z","size":36,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-30T21:29:48.720Z","etag":null,"topics":["cakephp","cakephp-plugin","cakephp-pug","composer","pug"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elquimista.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-04T18:20:13.000Z","updated_at":"2019-10-24T19:01:20.000Z","dependencies_parsed_at":"2022-08-21T08:50:18.971Z","dependency_job_id":null,"html_url":"https://github.com/elquimista/cakephp-pug","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/elquimista/cakephp-pug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elquimista%2Fcakephp-pug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elquimista%2Fcakephp-pug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elquimista%2Fcakephp-pug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elquimista%2Fcakephp-pug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elquimista","download_url":"https://codeload.github.com/elquimista/cakephp-pug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elquimista%2Fcakephp-pug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cakephp","cakephp-plugin","cakephp-pug","composer","pug"],"created_at":"2024-12-04T19:34:55.222Z","updated_at":"2026-03-10T06:02:37.602Z","avatar_url":"https://github.com/elquimista.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/clthck/cakephp-pug.svg)](https://travis-ci.org/clthck/cakephp-pug)\n[![Latest Stable Version](https://poser.pugx.org/clthck/cakephp-pug/v/stable)](https://packagist.org/packages/clthck/cakephp-pug)\n[![Total Downloads](https://poser.pugx.org/clthck/cakephp-pug/downloads)](https://packagist.org/packages/clthck/cakephp-pug)\n[![License](https://poser.pugx.org/clthck/cakephp-pug/license)](https://packagist.org/packages/clthck/cakephp-pug)\n\n# Pug Template Engine Plugin for CakePHP 3\n\nPowered by [Tale Pug for PHP](https://github.com/Talesoft/tale-pug).\n\n## Installation\n\n1. Download [Composer](http://getcomposer.org/doc/00-intro.md) or update `composer self-update`.\n2. Run `php composer.phar require clthck/cakephp-pug`.\n\nIf Composer is installed globally, run\n```bash\ncomposer require clthck/cakephp-pug\n```\n\n## Bootstrap\n\nAdd the following to your `config/bootstrap.php` to load the plugin.\n\n```php\nPlugin::load('PugView');\n```\n\n## Application Wide Usage\n\nPlace the following to your `AppController.php` to load the PugView class.\n```php\npublic function initialize()\n{\n    parent::initialize();\n\n    $this-\u003eviewBuilder()\n        -\u003eclassName('PugView.Pug')\n        -\u003eoptions(['pretty' =\u003e false]);\n}\n```\n\nWhat if we need to load additional helpers for our PugView instance?\nIn this case, we can make AppView class inherit PugView class:\n```php\n...\nuse PugView\\View\\PugView;\n...\nclass AppView extends PugView\n{\n\t...\n\tpublic function initialize()\n\t{\n\t    $this-\u003eviewOptions([\n\t        'pretty' =\u003e true\n\t    ]);\n\n\t    parent::initialize();\n\t    \n\t    $this-\u003eloadHelper('Form', [\n\t        'templates' =\u003e 'form_template'\n\t    ]);\n\t}\n}\n```\n\n## In Template File (.ctp.pug)\n\nUse `$view` instead of `$this`.\n```php\n= $view-\u003eFlash-\u003erender()\n```\n\n## Usage Example of CakePHP JavaScript block\n\n\t- $view-\u003eHtml-\u003escriptStart(['block' =\u003e true])\n\t|\n\t\t$(function() {\n\t\t\t// Your js code goes here..\n\t\t});\n\n\t- $view-\u003eHtml-\u003escriptEnd()\n\nIf you're using Sublime Text 2/3, you need to install [cakephp-jade-tmbundle](http://github.com/clthck/cakephp-jade-tmbundle/tree/master) to make syntax highlighting work properly.\n\n## Language Syntax Reference\n\nPlease check [jade.talesoft.codes](http://jade.talesoft.codes/) for syntax reference.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felquimista%2Fcakephp-pug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felquimista%2Fcakephp-pug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felquimista%2Fcakephp-pug/lists"}