Skip to main content

Web fragments

Project description

PyPI Travis 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 Contributing to edX for details.

Note: Even though these guidelines were written with edx-platform in mind, they should be followed for Open edX code in general.

Reporting Security Issues

Please do not report security issues in public. Please email security@edx.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-0.3.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

web_fragments-0.3.1-py2.py3-none-any.whl (16.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: web-fragments-0.3.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.5.6

File hashes

Hashes for web-fragments-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9035cc075e3f3c7bf82bdd04c7224d0f7d4ee56c89171693a8930f2e4f88ca73
MD5 f88271d951b560f8c0ef86bde8655b78
BLAKE2b-256 2b8b7726e3309b16c8a9445c0f5cdb9bcf52e11d4fdd68b8349307121bbadecb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: web_fragments-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.5.6

File hashes

Hashes for web_fragments-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a5c81e5967cb6f4cd683efe564c9afd5cf727c1c73ffba27f544a274248b0233
MD5 3300cdbcec623fea7ae461ede73a5bcb
BLAKE2b-256 80243bf5dd65cecec36cdb74c396951297c43ab056d298a57740c143bdf3bd12

See more details on using hashes here.

Supported by

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