{"id":16362616,"url":"https://github.com/ahebrank/newcity_twig","last_synced_at":"2026-04-13T08:31:59.432Z","repository":{"id":56942306,"uuid":"69461502","full_name":"ahebrank/newcity_twig","owner":"ahebrank","description":"Twig extensions and functions for Drupal 8","archived":false,"fork":false,"pushed_at":"2024-06-23T18:26:34.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-29T08:10:31.044Z","etag":null,"topics":["drupal","drupal-8","drupal-module","twig-extension"],"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/ahebrank.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":"2016-09-28T12:36:34.000Z","updated_at":"2024-06-23T18:26:38.000Z","dependencies_parsed_at":"2024-06-23T19:39:28.937Z","dependency_job_id":"ce896b0f-0872-4d3f-8ac6-962ab22fc1ee","html_url":"https://github.com/ahebrank/newcity_twig","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"583bd8c140c2783a06973aa81bd4396906476413"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahebrank/newcity_twig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahebrank%2Fnewcity_twig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahebrank%2Fnewcity_twig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahebrank%2Fnewcity_twig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahebrank%2Fnewcity_twig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahebrank","download_url":"https://codeload.github.com/ahebrank/newcity_twig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahebrank%2Fnewcity_twig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"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","drupal-8","drupal-module","twig-extension"],"created_at":"2024-10-11T02:24:48.379Z","updated_at":"2026-04-13T08:31:59.417Z","avatar_url":"https://github.com/ahebrank.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NewCity Twig Extensions\n\nA Drupal 8 module to provide some useful Twig extensions and functions\n\nCurrently includes:\n\n## Extensions\n\n### Render helpers\n\n- `resize(style)`: resize an image with an image style; returns image render array\n- `flattenfield`: traverse and flatten a render array\n- `smarttrim(wordCount)`: a smarter truncation function (Example: `content.field_text|render|striptags|smarttrim(n)`)\n- `alias`: get path alias for an entity\n\n### Project-specific but potentially useful\n\n- `multilinesuperhead`: Break a multiline heading by wrapping all words except the last in `\u003csmall\u003e`\n\n### Debug helpers \n\n- `nocomment` : removes HTML comments from markup\n- `firstlevel` : debug dump only the top level of a render array\n\n## Functions\n\n- `uniqid()` : generate a unique ID with PHP's `uniqid()`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahebrank%2Fnewcity_twig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahebrank%2Fnewcity_twig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahebrank%2Fnewcity_twig/lists"}