Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 %}