{"id":17458136,"url":"https://github.com/pocesar/jade-kohana","last_synced_at":"2025-04-02T21:30:14.020Z","repository":{"id":10856301,"uuid":"13139691","full_name":"pocesar/jade-kohana","owner":"pocesar","description":"Jade templating engine on Kohana","archived":false,"fork":false,"pushed_at":"2013-09-29T16:50:44.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T06:28:26.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pocesar.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":"2013-09-27T02:36:58.000Z","updated_at":"2022-12-27T22:37:46.000Z","dependencies_parsed_at":"2022-08-29T15:10:11.701Z","dependency_job_id":null,"html_url":"https://github.com/pocesar/jade-kohana","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fjade-kohana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fjade-kohana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fjade-kohana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fjade-kohana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocesar","download_url":"https://codeload.github.com/pocesar/jade-kohana/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246895523,"owners_count":20851284,"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-10-18T03:55:13.879Z","updated_at":"2025-04-02T21:30:13.673Z","avatar_url":"https://github.com/pocesar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"jade-kohana\n===========\n\nJade templating engine on Kohana. This module works by compiling `.jade` templates to PHP files.\n\nAll compiled files goes to the `application/cache/jade` folder (that must be created and chmod'ed properly)\n\nUsage\n===========\n\nYou have two options:\n\n#### Use the JadeTemplate instead of ControllerTemplate\n\n```php\n// Will look for template.jade by default, that is in views/template.jade\nclass Controller_Index extends JadeTemplate\n{\n    function action_index()\n    {\n        $this-\u003etemplate-\u003egreeting = 'Hello';\n    }\n}\n```\n\n#### Load the Jade views manually through JadeView class\n\n```php\nclass Controller_Index extends Controller\n{\n    function action_index()\n    {\n        $this-\u003eresponse-\u003ebody(JadeView::factory('path/to/file.jade'));\n    }\n}\n```\n\nThis module extends from `Kohana_Controller` and `Kohana_View`, so it's _almost_ a drop-in replacement for existing controllers and views, behaves exactly like a `View` and `$jadeView instanceof View` returns true\n\nYou can, in your `application` folder, change the default `View` to use `JadeView`, but it will break view rendering for PHP views.\n\n#### Known limitations\n\n* Jade errors won't display a line number, making it very hard to spot indentation errors\n* The compiled code cache is very crude and relies only on file modification times\n* Result compiled php file is messy (that is a PHP Jade limitation)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Fjade-kohana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocesar%2Fjade-kohana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Fjade-kohana/lists"}