Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyleterry/django-html5-boilerplate
A simple Django HTML5 boilerplate. I mean VERY simple.
https://github.com/kyleterry/django-html5-boilerplate
Last synced: 14 days ago
JSON representation
A simple Django HTML5 boilerplate. I mean VERY simple.
- Host: GitHub
- URL: https://github.com/kyleterry/django-html5-boilerplate
- Owner: kyleterry
- License: bsd-2-clause
- Created: 2013-01-22T22:40:09.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-22T23:04:14.000Z (almost 12 years ago)
- Last Synced: 2024-04-14T22:28:07.294Z (7 months ago)
- Language: Python
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# A Simple Django HTML5 Boilerplate
This is meant to be very simple. No batteries included. I often need only
what you see in these templates when firing up a new project.It provides only the base set of block tags you need to get started with
HTML5.## Installation
Through pypi:
`pip install django-html5-boilerplate`
Or take the manual route:
`git clone https://github.com/kyleterry/django-html5-boilerplate.git && cd djangohtml5boilerplate && python setup.py install`
## Configuration
Add `djangohtml5boilerplate` to your settings.py's `INSTALLED_APPS` tuple.
Start a new template:
{% extends "html5boilerplate/base.html" %}
{% block css %}
{% endblock css %}
{% block header_content %}
This is an awesome header!
{% endblock header_content %}
{% block content %}
Here is some of my favorite content.
{% endblock content %}
{% block footer_content %}
© Some Name 2013
{% endblock footer_content %}
{% block body_js %}
... Google analytics or something
{% endblock body_js %}Or you can override the body completely. (body_js sticks around because everyone needs that):
{% extends "html5boilerplate/base.html" %}
{% block css %}
{% endblock css %}
{% block body %}
Custom Header
Custom content
© Custom footer 2013
{% endblock body %}