{"id":19252932,"url":"https://github.com/frc/wp-view","last_synced_at":"2025-09-11T21:18:29.738Z","repository":{"id":140523426,"uuid":"236007498","full_name":"frc/wp-view","owner":"frc","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-22T08:29:54.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-27T00:46:15.503Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-24T13:27:08.000Z","updated_at":"2020-05-22T08:29:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e5f49fc-88eb-4828-bd4d-8b58726211b1","html_url":"https://github.com/frc/wp-view","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frc/wp-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frc","download_url":"https://codeload.github.com/frc/wp-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-view/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274706696,"owners_count":25334795,"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-09-11T02:00:13.660Z","response_time":74,"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":[],"created_at":"2024-11-09T18:28:53.372Z","updated_at":"2025-09-11T21:18:29.716Z","avatar_url":"https://github.com/frc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP View\n\nTODO ...\n\nThis is a must-use plugin used via composer, plugin activation not required.\n\nLogic and conventions inspired by Laravel and React.\n\n## Usage\n\nCall function as `frc_view($viewName, $data = [])`.\n\nIf you don't pass array as a second argument it will be assigned to array with key `children`.\n\nDefault root for searching view is themes `views` folder.\n\n### Example\n\n```php\n\u003c?= frc_view('components/app',\n    frc_view('components/layout', [\n        'main' =\u003e frc_view('components/blocks'),\n        'footer' =\u003e frc_view('components/page-footer', [\n            'shares' =\u003e false,\n        ]),\n    ])\n); ?\u003e\n```\n\nRendered as:\n\n```html\n// views/components/app.php\n\n\u003chead\u003e\n...\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cheader\u003e...\u003c/header\u003e\n    \u003cmain\u003e\n        \u003c?= $children; ?\u003e // content of views/components/layout.php \n    \u003c/main\u003e\n    \u003cfooter\u003e...\u003c/footer\u003e\n\u003c/body\u003e\n```\n\n```html\n// views/components/layout.php\n\n\u003cdiv\u003e\n    \u003c?= $main; ?\u003e // content of views/components/blocks.php\n\u003c/div\u003e\n\u003cdiv\u003e\n    \u003c?= $footer; ?\u003e // content of views/components/page-footer.php\n\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrc%2Fwp-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrc%2Fwp-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrc%2Fwp-view/lists"}