Skip to main content

Web fragments

Project description

PyPI CI Codecov Documentation Supported Python versions License

Overview

The web fragments library provides a Python and Django implementation for managing fragments of web pages. In particular, this library refactors the fragment code from XBlock into a standalone implementation.

A Django view subclass called FragmentView is provided which supports three different ways of rendering a fragment into a page:

  • the fragment can be rendered as a standalone page at its own URL

  • the fragment can be rendered into another page directly from Django

  • the fragment can be returned as JSON so that it can be rendered client-side

The rationale behind this design can be found in OEP-12.

The intention is that a client-side implementation will be provided in a subsequent version. This should provide JavaScript code to request fragements over AJAX and then dynamically update the current page. This logic will be a refactoring of the current implementation in edx-platform for rendering XBlocks. It is also intended that this functionality will enhance the capabilities around dependency loading.

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome. Please read the Open edX Contributing Guide for details.

Reporting Security Issues

Please do not report security issues in public. Please email security@openedx.org.

Getting Help

Have a question about this repository, or about Open edX in general? Please refer to the Open edX guide to Getting Help.

We don’t maintain a detailed changelog. For details of changes, see the GitHub commit history.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

web-fragments-2.2.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

web_fragments-2.2.0-py2.py3-none-any.whl (15.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file web-fragments-2.2.0.tar.gz.

File metadata

  • Download URL: web-fragments-2.2.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for web-fragments-2.2.0.tar.gz
Algorithm Hash digest
SHA256 9a6a448c5a6dcab13c3d0f3e89db479783445d8b4af5bdc360074320f2b90ba3
MD5 2506f6a07297e2d1b47590aee51f33fb
BLAKE2b-256 8249d30503bd1ab204b72b25e0a530f1cfe76c62d865d0cf17d5737f7d068c38

See more details on using hashes here.

File details

Details for the file web_fragments-2.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for web_fragments-2.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 615a9b8e7981f21d60a00a41d4eebb1c48ad856864d5e229a0a004342e6a244f
MD5 7c9ae0b79dc0be78efe2cb0ee8d9aa80
BLAKE2b-256 396200a80bff0ca118a5e487326e626252b2362d2bae2e9e77b9e7de02e83ed2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page