{"id":23631173,"url":"https://github.com/philecms/philerender","last_synced_at":"2025-08-25T16:20:16.116Z","repository":{"id":15088003,"uuid":"17814506","full_name":"PhileCMS/phileRender","owner":"PhileCMS","description":"Render the content of a page by passing it's URL","archived":false,"fork":false,"pushed_at":"2014-06-19T13:28:27.000Z","size":200,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T23:09:51.470Z","etag":null,"topics":["philecms-plugin"],"latest_commit_sha":null,"homepage":"","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/PhileCMS.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":"2014-03-17T02:07:15.000Z","updated_at":"2018-03-15T13:41:18.000Z","dependencies_parsed_at":"2022-09-08T14:31:32.785Z","dependency_job_id":null,"html_url":"https://github.com/PhileCMS/phileRender","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PhileCMS/phileRender","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhileCMS%2FphileRender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhileCMS%2FphileRender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhileCMS%2FphileRender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhileCMS%2FphileRender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhileCMS","download_url":"https://codeload.github.com/PhileCMS/phileRender/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhileCMS%2FphileRender/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272094208,"owners_count":24872314,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["philecms-plugin"],"created_at":"2024-12-28T02:48:56.721Z","updated_at":"2025-08-25T16:20:16.095Z","avatar_url":"https://github.com/PhileCMS.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"phileRender\n===========\n\nRender the content of a page by passing it's URL.\n\n**This plugin requires that you use Twig for your template engine**\n\n### 1.1 Installation (composer)\n```\nphp composer.phar require phile/render:*\n```\n\n### 1.2 Installation (Download)\n\n* Install [Phile](https://github.com/PhileCMS/Phile)\n* Clone this repo into `plugins/phile/render`\n\n### 2. Activation\n\nAfter you have installed the plugin. You need to add the following line to your `config.php` file:\n\n```\n$config['plugins']['phile\\\\render'] = array('active' =\u003e true);\n```\n\n### Usage\n\nThere will now be a new twig function called `render`. It takes a URL to a page, and renders the HTML for it!\n\n#### Basic Examples:\n\nThe path is the same as the way we load pages via URLs.\n\nLet's say we have a page at `content/special.md`, then we will use:\n\n```html\n{{ render('special') }}\n```\n\nThis will render the HTML of the `special` page.\n\nLet's say we have a page at `content/sub/special-nested.md`, then we will use:\n\n```html\n{{ render('sub/special-nested') }}\n```\n\nThis will render the HTML of the `sub/special-nested` page.\n\n#### Conditional Examples\n\nIn the config file you can set conditionals so you don't load a page that may not be setup for loading in this way.\n\n```php\nreturn array(\n  'conditional_checks' =\u003e array(\n    'template' =\u003e 'partial',\n    'role' =\u003e 'custom'\n  )\n);\n```\n\nThis conditional means: only load pages that have a template of 'partial' and a role that is 'custom'. We can use *any custom meta* for the conditionals. We can also use multiple key =\u003e values for checking as you can see from the example.\n\n### Errors\n\nThis plugin will fail silently if no page is found, or the conditional is not met.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilecms%2Fphilerender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilecms%2Fphilerender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilecms%2Fphilerender/lists"}