{"id":13759757,"url":"https://github.com/generoi/wp-gutenberg-templates","last_synced_at":"2025-12-24T17:12:33.131Z","repository":{"id":147858798,"uuid":"136654455","full_name":"generoi/wp-gutenberg-templates","owner":"generoi","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-24T16:04:57.000Z","size":1102,"stargazers_count":41,"open_issues_count":9,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-24T21:51:42.616Z","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/generoi.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}},"created_at":"2018-06-08T18:42:36.000Z","updated_at":"2025-07-24T16:02:38.000Z","dependencies_parsed_at":"2024-01-20T04:53:04.117Z","dependency_job_id":"b2550ef4-8ce4-4f1d-8e01-13a428cfc048","html_url":"https://github.com/generoi/wp-gutenberg-templates","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/generoi/wp-gutenberg-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generoi%2Fwp-gutenberg-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generoi%2Fwp-gutenberg-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generoi%2Fwp-gutenberg-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generoi%2Fwp-gutenberg-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/generoi","download_url":"https://codeload.github.com/generoi/wp-gutenberg-templates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generoi%2Fwp-gutenberg-templates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28005414,"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-12-24T02:00:07.193Z","response_time":83,"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-08-03T13:00:58.728Z","updated_at":"2025-12-24T17:12:33.116Z","avatar_url":"https://github.com/generoi.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# wp-gutenberg-templates\n\n\u003e Add page template support to Gutenberg\n\n## Features\n\nAllow switching the Gutenberg block template based on the page template attribute.\n\n## API\n\n```php\nadd_action('init', function () {\n    register_gutenberg_template('foobar', [\n        'post_type' =\u003e 'page',\n        'name' =\u003e __('Foobar'),\n        'template' =\u003e [\n            ['genero/banner'],\n            ['core/paragraph'],\n        ],\n        'template_lock' =\u003e 'all',\n    ]);\n});\n```\n\n## Development\n\nInstall dependencies\n\n    composer install\n    npm install\n\nRun the tests\n\n    npm run test\n\nBuild assets\n\n    # Minified assets which are to be committed to git\n    npm run production\n\n    # Watch for changes and re-compile while developing the plugin\n    npm run watch\n\n## Translations\n\nDuring compilation a `languages/javascript.pot` containing the translatable strings from JavaScript will be created. This needs to be converted to PHP which is done automatically in the next step.\n\nRebuild POT files (after this, copy to each language as languages/wp-gutenberg-backgrounds-\u003clangcode\u003e.po and translate it)\n\n    npm run lang:pot\n\nCompile MO files (requires msgfmt which is available with brew install gettext \u0026\u0026 brew link gettext --force)\n\n    npm run lang:mo\n\nOr run all of these with:\n\n    npm run lang\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeneroi%2Fwp-gutenberg-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeneroi%2Fwp-gutenberg-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeneroi%2Fwp-gutenberg-templates/lists"}