A module for Django that allows to build pattern libraries for your projects, forked for MicroMentor.
Project description
micromentor-django-pattern-library
This is a MicroMentor specific fork of:
django-pattern-library
UI pattern libraries for Django templates. Try our online demo.
Features
This package automates the maintenance of UI pattern libraries or styleguides for Django projects, and allows developers to experiment with Django templates without having to create Django views and models.
- Create reusable patterns by creating Django templates files as usual.
- All patterns automatically show up in the pattern library’s interface.
- Define data as YAML files for the templates to render with the relevant Django context.
- Override Django templates tags as needed to mock the template’s dependencies.
- Document your patterns with Markdown.
Why you need this
Pattern libraries will change your workflow for the better:
- They help separate concerns, both in code, and between members of a development team.
- If needed, they make it possible for UI development to happen before models and views are created.
- They encourage code reuse – defining independent UI components, that can be reused across apps, or ported to other projects.
- It makes it much simpler to test UI components – no need to figure out where they’re used across a site or app.
Learn more by watching our presentation – Reusable UI components: A journey from React to Wagtail.
Online demo
The pattern library is dependent on Django for rendering – but also supports exporting as a static site if needed. Try out our online demo:
- For a component, accordion.html
- For a page-level template, person_page.html
Documentation
Documentation is available at torchbox.github.io/django-pattern-library, with source files in the docs
directory.
- Getting started
- Guides
- Reference
Contributing
See anything you like in here? Anything missing? We welcome all support, whether on bug reports, feature requests, code, design, reviews, tests, documentation, and more. Please have a look at our contribution guidelines.
If you want to set up the project on your own computer, the contribution guidelines also contain all of the setup commands.
Nightly builds
To try out the latest features before a release, we also create builds from every commit to master
. Note we make no guarantee as to the quality of those pre-releases, and the pre-releases are overwritten on every build so shouldn’t be relied on for reproducible builds. Download the latest django_pattern_library-0.0.0.dev0-py3-none-any.whl
.
Credits
View the full list of contributors. BSD licensed.
Project logo from FxEmoji. Documentation website built with MkDocs, and hosted in GitHub Pages.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file micromentor-django-pattern-library-0.0.1.tar.gz
.
File metadata
- Download URL: micromentor-django-pattern-library-0.0.1.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.1 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9600c711bd15482264ade1a16d378627d34c122b5df11d4208094f129f0753ab |
|
MD5 | 42d6e0efe7f71bf3a450d5aae8e4aff7 |
|
BLAKE2b-256 | 696c8c0328ad6915fba0bd434d1ef897d19f252585d9b1915a4e1f5b384c07f1 |
File details
Details for the file micromentor_django_pattern_library-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: micromentor_django_pattern_library-0.0.1-py3-none-any.whl
- Upload date:
- Size: 31.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.1 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e70cb3e5ce58eb74b9ff5e5e8b80b3818fe2cda0760cfdcd212e948fb2366c0b |
|
MD5 | d945144ad45487c1094926746997e9b5 |
|
BLAKE2b-256 | a2abf2e3ae756b5ab60d4e8928e4bb66245f01c50bbd0d9d96d016bcec87930f |