{"id":13530438,"url":"https://github.com/springload/wagtailembedder","last_synced_at":"2025-07-31T16:31:53.192Z","repository":{"id":25876258,"uuid":"29316470","full_name":"springload/wagtailembedder","owner":"springload","description":"Snippets embedder for Wagtail richtext fields","archived":false,"fork":false,"pushed_at":"2023-02-08T22:57:09.000Z","size":124,"stargazers_count":37,"open_issues_count":1,"forks_count":4,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-11-13T16:11:50.498Z","etag":null,"topics":["embeds","python","snippets","wagtail"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/wagtailembedder","language":"Python","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/springload.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2015-01-15T20:22:34.000Z","updated_at":"2024-08-07T23:55:06.000Z","dependencies_parsed_at":"2024-01-07T13:09:25.408Z","dependency_job_id":"4a1c7dc3-2479-4674-96bb-f0c42b0ecfdf","html_url":"https://github.com/springload/wagtailembedder","commit_stats":{"total_commits":35,"total_committers":5,"mean_commits":7.0,"dds":0.5428571428571429,"last_synced_commit":"50f04b8342ef30cb23897c0b7a2d1270c499a59d"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springload%2Fwagtailembedder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springload%2Fwagtailembedder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springload%2Fwagtailembedder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springload%2Fwagtailembedder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/springload","download_url":"https://codeload.github.com/springload/wagtailembedder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228267806,"owners_count":17893841,"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":["embeds","python","snippets","wagtail"],"created_at":"2024-08-01T07:00:49.858Z","updated_at":"2024-12-05T09:16:50.011Z","avatar_url":"https://github.com/springload.png","language":"Python","funding_links":[],"categories":["Apps"],"sub_categories":["Rich text editor extensions"],"readme":"# wagtailembedder [![PyPI](https://img.shields.io/pypi/v/wagtailembedder.svg)](https://pypi.python.org/pypi/wagtailembedder)\n\n\u003e Snippets embedder for Wagtail RichTextField.\n\n*Check out [Awesome Wagtail](https://github.com/springload/awesome-wagtail) for more awesome packages and resources from the Wagtail community.*\n\n![Wagtailembedder scnreenshot](./screenshot.png)\n\n## Quickstart\n\nInstall the package with\n\n```sh\npip install wagtailembedder\n```\n\nAdd `wagtailembedder` to your `settings.py` in the `INSTALLED_APPS` section:\n\n```python\nINSTALLED_APPS = [\n    ...\n    'modelcluster',\n    'wagtailembedder',\n    'core',\n    ...\n]\n```\n\nFor each models registered as a wagtail.wagtailsnippets create an html file to render the template inside a RichText field.\n\n * Templates names will match snippets models names replacing capital letters with underscores, Wagtail style.\n   For the ```SocialMediaLink``` snippet in the ```core``` app, it will look for the following template ```core/templates/snippets/socialmedialink.html```.\n * The variable containing the snippet instance in the template is ```snippet```.\n\nIf no template is defined then an exception will be raised in the frontend when rendering a RichTextField with the embedded snippet in it. Make sure you write some templates for your snippets before start to embedding them.\n\n# Options\n\nIf the snippet meta has a description field, it will show up next to the snippet name in the admin interface.\n\n```python\nfrom django.db import models\nimport django.db.models.options as options\n\noptions.DEFAULT_NAMES = options.DEFAULT_NAMES + ('description',)\n\n\n@register_snippet\nclass MySnippet(models.Model):\n    # fields definition\n\n    class Meta:\n        description = \"My Snippet Description\"\n```\n\n## Development\n\n### Releases\n\n- Make a new branch for the release of the new version.\n- Update the [CHANGELOG](https://github.com/springload/wagtailembedder/CHANGELOG.md).\n- Update the version number in `setup.py`, following semver.\n- Make a PR and squash merge it.\n- Back on master with the PR merged, use `make publish` (confirm, and enter your password).\n- Finally, go to GitHub and create a release and a tag for the new version.\n- Done!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringload%2Fwagtailembedder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringload%2Fwagtailembedder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringload%2Fwagtailembedder/lists"}