{"id":18509133,"url":"https://github.com/timber/sugar","last_synced_at":"2025-04-09T03:32:23.290Z","repository":{"id":16953045,"uuid":"19715265","full_name":"timber/sugar","owner":"timber","description":"Some bonus functionality for Timber","archived":false,"fork":false,"pushed_at":"2016-06-01T01:54:34.000Z","size":59,"stargazers_count":45,"open_issues_count":4,"forks_count":4,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-03T11:43:51.615Z","etag":null,"topics":["php","timber","twig","wordpress"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timber.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-05-12T20:59:20.000Z","updated_at":"2021-12-13T10:46:52.000Z","dependencies_parsed_at":"2022-08-04T12:30:15.113Z","dependency_job_id":null,"html_url":"https://github.com/timber/sugar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timber%2Fsugar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timber%2Fsugar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timber%2Fsugar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timber%2Fsugar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timber","download_url":"https://codeload.github.com/timber/sugar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247973945,"owners_count":21026738,"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","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":["php","timber","twig","wordpress"],"created_at":"2024-11-06T15:16:34.320Z","updated_at":"2025-04-09T03:32:22.992Z","avatar_url":"https://github.com/timber.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Timber Sugar\n\n[![Build Status](https://img.shields.io/travis/timber/sugar/master.svg?style=flat-square)](https://travis-ci.org/timber/sugar)\n[![Coverage Status](https://img.shields.io/coveralls/timber/sugar.svg?style=flat-square)](https://coveralls.io/r/timber/sugar?branch=master)\n\nSome bonus functionality for Timber. Install it in `wp-content/plugins` and activate via the WordPress admin. Featuring...\n\n### `dummy`\n\nThrow some dummy lorem ipsum where you need it...\n```html+django\n\u003ch1\u003eSome title\u003c/h1\u003e\n\u003cdiv class=\"body\"\u003e\n\t{{dummy(500)|wpautop}}\n\u003c/div\u003e\n```\n... this outputs 500 words of random lorem ipsum.\n\n###### Use it as a filter\n```html+django\n\u003ch1\u003e{{post.title|dummy(15)}}\u003c/h1\u003e\n```\n... this outputs 15 words of lorem ipsum _if_ post.title is empty\n\n### `twitterify`\n\nTake a string with @handles and #hashTags and make them links:\n\n```html+django\n\u003cdiv class=\"my-tweet\"\u003e\n{{tweet.content|twitterify}}\n\u003c/div\u003e\n```\n\nOutputs...\n\n```html\nYou should follow \u003ca href=\"http://twitter.com/timberwp\" target=\"_blank\"\u003e@TimberWP\u003c/a\u003e\nif you love \u003ca href=\"http://search.twitter.com/search?q=wordpress\" target=\"_blank\"\u003e#wordpress\u003c/a\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimber%2Fsugar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimber%2Fsugar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimber%2Fsugar/lists"}