{"id":15937646,"url":"https://github.com/miyagi-dev/twig-drupal","last_synced_at":"2026-02-25T09:33:02.817Z","repository":{"id":59833619,"uuid":"514510245","full_name":"miyagi-dev/twig-drupal","owner":"miyagi-dev","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-26T09:43:59.000Z","size":459,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-31T21:39:14.774Z","etag":null,"topics":["drupal","twig","twigjs"],"latest_commit_sha":null,"homepage":"https://www.miyagi.dev","language":"JavaScript","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/miyagi-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-07-16T07:30:50.000Z","updated_at":"2024-05-03T08:37:46.000Z","dependencies_parsed_at":"2024-05-03T09:48:02.252Z","dependency_job_id":"f29c14c4-0fea-4f56-bfda-ac75a69454cf","html_url":"https://github.com/miyagi-dev/twig-drupal","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":0.5,"last_synced_commit":"71d8f6936a7e30d04d85ea67440f984cb078bb7e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/miyagi-dev/twig-drupal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyagi-dev%2Ftwig-drupal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyagi-dev%2Ftwig-drupal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyagi-dev%2Ftwig-drupal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyagi-dev%2Ftwig-drupal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miyagi-dev","download_url":"https://codeload.github.com/miyagi-dev/twig-drupal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyagi-dev%2Ftwig-drupal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29816072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"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":["drupal","twig","twigjs"],"created_at":"2024-10-07T05:04:24.644Z","updated_at":"2026-02-25T09:33:02.802Z","avatar_url":"https://github.com/miyagi-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @miyagi/twig-drupal\n\nThis extension adds support for specific twig and Drupal functionality to [@miyagi/core](https://npmjs.com/package/@miyagi/core).\n\n## Features\n\n### Drupal attributes\n\n- `addClass`\n- `setAttribute`\n\n[More about Drupal attributes](https://www.drupal.org/docs/8/theming-drupal-8/using-attributes-in-templates)\n\nTo use Drupal attributes in your mock files, add `$drupal: true` to the object.\n\n### twig\n\n**NOTE:** If you need to add additional filters, functions or tags, please refer to the [_miyagi_ documentation](https://docs.miyagi.dev/configuration/extending-template-engine/).\n\n#### Functions and filters\n\nThis plugin uses [twig-drupal-filters](https://www.npmjs.com/package/twig-drupal-filters), so all its functions and filters are supported.\n\n#### Tags\n\n- `trans` / `endtrans`\n- `plural`\n\n## Installation\n\n```bash\nnpm i --save-dev @miyagi/twig-drupal\n```\n\nor\n\n```bash\nyarn add -D @miyagi/twig-drupal\n```\n\n### Usage\n\nAdd the extension to your `.miyagi.js` like this:\n\n```js\nmodule.exports = {\n  extensions: [require('@miyagi/twig-drupal')],\n  ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyagi-dev%2Ftwig-drupal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiyagi-dev%2Ftwig-drupal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyagi-dev%2Ftwig-drupal/lists"}