Django template renderer for designers
Project description
Allow designers to work on your templates without having to run the Django development server, database etc.
Designer’s workflow:
Pulls repo
Edits template, makes it look pretty
Runs manage.py command to render template and produce html file
Points browser to file
Views pretty rendered template in browser
Repeats steps 2 and 3, refreshes browser
Commits and pushes pretty templates
Note: To state the obvious, context variables are not rendered on page. View functions are not called. Context variables are often not needed when a desinger is viewing templates for design purposes.
Install
Install package:
pip install django-designer
Usage
Run:
$ ./manage.py render_template your_app/templates/home.html file:///Users/you/Projects/your_project/your_app/templates/home_rendered.html
Copy-paste output into browser address bar and view rendered template.
Recommend you add *_rendered.html to your .gitignore.
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
File details
Details for the file django-designer-0.2.1.tar.gz
.
File metadata
- Download URL: django-designer-0.2.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29134c83705f7380caeef95a289ae2e71443603f8df75416c953ca7463664d17 |
|
MD5 | 273083c5ae7029082bb4e9957b10ef4f |
|
BLAKE2b-256 | e61b5677777c96c930c481af196faca6cf363edd11cb0e02079b3d0813be3543 |