GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lincolnloop/django-pattern-library: UI pattern libraries for Django templates

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

635 Commits
635 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills/upgrading-stylelint
.agents/skills/upgrading-stylelint
 
 
.devcontainer
.devcontainer
 
 
.github
.github
 
 
docs
docs
 
 
pattern_library
pattern_library
 
 
tests
tests
 
 
.babelrc.js
.babelrc.js
 
 
.dockerignore
.dockerignore
 
 
.editorconfig
.editorconfig
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
.gitpod.yml
.gitpod.yml
 
 
.nvmrc
.nvmrc
 
 
.prettierrc.toml
.prettierrc.toml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
mkdocs.yml
mkdocs.yml
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
poetry.lock
poetry.lock
 
 
pyproject.toml
pyproject.toml
 
 
runtests.py
runtests.py
 
 
setup.py
setup.py
 
 
skills-lock.json
skills-lock.json
 
 
stylelint.config.js
stylelint.config.js
 
 
tox.ini
tox.ini
 
 
tox_install.sh
tox_install.sh
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

django-pattern-library

PyPI PyPI downloads Build status

UI pattern libraries for Django templates. Try our online demo.

Screenshot of the pattern library UI, with navigation, pattern rendering, and configuration

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.
  • Experimental: support for Jinja templates.

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
    • Defining template context
    • Overriding template tags
    • Customizing template rendering
    • Usage tips
  • Reference
    • API & settings
    • Known issues and limitations

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 main. 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.

GitHub releases

Note: if making a release on GitHub, please make sure to 1. build locally (poetry build) , and 2. include the 2 build files (*.tar.gz and *.whl) as a part of the GitHub release.

About

UI pattern libraries for Django templates

torchbox.github.io/django-pattern-library/

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.