{"id":16798461,"url":"https://github.com/flosch/pongo2-addons","last_synced_at":"2025-03-22T02:30:52.093Z","repository":{"id":18806609,"uuid":"22020958","full_name":"flosch/pongo2-addons","owner":"flosch","description":"Official filter and tag addons for pongo2","archived":false,"fork":false,"pushed_at":"2022-11-21T13:34:13.000Z","size":27,"stargazers_count":39,"open_issues_count":4,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T06:51:29.753Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flosch.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-07-19T22:24:32.000Z","updated_at":"2024-11-07T23:41:54.000Z","dependencies_parsed_at":"2023-01-13T20:01:18.474Z","dependency_job_id":null,"html_url":"https://github.com/flosch/pongo2-addons","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/flosch%2Fpongo2-addons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2Fpongo2-addons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2Fpongo2-addons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2Fpongo2-addons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flosch","download_url":"https://codeload.github.com/flosch/pongo2-addons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244897736,"owners_count":20528284,"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":[],"created_at":"2024-10-13T09:25:43.361Z","updated_at":"2025-03-22T02:30:51.667Z","avatar_url":"https://github.com/flosch.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pongo2-addons\n\n[![Build Status](https://travis-ci.org/flosch/pongo2-addons.svg?branch=master)](https://travis-ci.org/flosch/pongo2-addons)\n[![Gratipay](http://img.shields.io/badge/gratipay-support%20pongo-brightgreen.svg)](https://gratipay.com/flosch/)\n\nOfficial filter and tag add-ons for [pongo2](https://github.com/flosch/pongo2). Since this package uses\n3rd-party-libraries, it's in its own package.\n\n## How to install and use\n\nInstall via `go get -u github.com/flosch/pongo2-addons`. All dependencies will be automatically fetched and installed.\n\nSimply add the following import line **after** importing pongo2:\n\n    _ \"github.com/flosch/pongo2-addons\"\n\nAll additional filters/tags will be registered automatically.\n\n## Addons\n\n### Filters\n\n  - Regulars\n     - **[filesizeformat](https://docs.djangoproject.com/en/dev/ref/templates/builtins/#filesizeformat)** (human-readable filesize; takes bytes as input)\n     - **[slugify](https://docs.djangoproject.com/en/dev/ref/templates/builtins/#slugify)** (creates a slug for a given input)\n     - **truncatesentences** / **truncatesentences_html** (returns the first X sentences [like truncatechars/truncatewords]; please provide X as a parameter)\n     - **random** (returns a random element of the input slice)\n\n  - Markup\n     - **markdown**\n\n  - Humanize\n     - **[intcomma](https://docs.djangoproject.com/en/dev/ref/contrib/humanize/#intcomma)** (put decimal marks into the number)\n     - **[ordinal](https://docs.djangoproject.com/en/dev/ref/contrib/humanize/#ordinal)** (convert integer to its ordinal as string)\n     - **[naturalday](https://docs.djangoproject.com/en/dev/ref/contrib/humanize/#naturalday)** (converts `time.Time`-object into today/yesterday/tomorrow if possible; otherwise it will use `naturaltime`)\n     - **[timesince](https://docs.djangoproject.com/en/dev/ref/templates/builtins/#timesince)/[timeuntil](https://docs.djangoproject.com/en/1.6/ref/templates/builtins/#timeuntil)/[naturaltime](https://docs.djangoproject.com/en/dev/ref/contrib/humanize/#naturaltime)** (human-readable time [duration] indicator)\n\n### Tags\n\n(nothing yet)\n\n## TODO\n\n - Support i18n/i10n\n\n## Used libraries\n\nI want to thank the authors of these libraries (which are being used in `pongo2-addons`):\n\n * [github.com/extemporalgenome/slug](https://github.com/extemporalgenome/slug)\n * [github.com/dustin/go-humanize](https://github.com/dustin/go-humanize)\n * [github.com/russross/blackfriday](https://github.com/russross/blackfriday)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflosch%2Fpongo2-addons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflosch%2Fpongo2-addons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflosch%2Fpongo2-addons/lists"}