Skip to main content
django-h5bp
===========

A simple HTML5 Boilerplate Django app that has some predefined template Blocks,
useful to be extended in any application template.


Instalation
-----------------------------------

pip install django-h5bp


Usage
-----------------------------------

Add this app to the 'installed_apps' settings:

INSTALLED_APPS = (
...
'django_h5bp',
)

Extend the H5BP template in your base template, here is an example:

{% extends "responsive/responsive_h5bp.html" %}

{% block page-title %}My Great Project{% endblock %}

{% block header %}
<h1 class="title">Here is my page header</h1>
{% endblock %}

{% block main-container %}
<div>
<p>Hello World!</p>
</div>
{% endblock %}

{% block footer %}
<p>Footer</p>
{% endblock %}

That should be enought to have your base.html using the Responsive HTML5 Boilerplate Django template.

Static Files
-----------------------------------
The H5BP template comes with some JS in it, as well as the default css style, all of them are correctly configured in the template to use the {{ STATIC_URL }} tag.

The only one missing is the favicon.ico, that you should set your own (else it would the default one, depending on the position you put the app in the installed app list).


H5BP Template Blocks
-----------------------------------

Here are all the blocks that exist in the responsive_h5bp.html:

### \<head\>
* page-title
* meta-description
* meta-keywords
* meta-author
* meta-generator
* meta-extras
* css-extras

### \<body\>\<header\>
* header

### \<body\>\<div class="main"\>
* main-container

### \<body\>
* js-imports

### \<body\>\<script type="text/javascript"\>
* jquery-docready
* jquery-winload

### \<body\>\<script type="text/javascript"\>
* js-onpage

### \<body\>
* analytics

404 Page
-----------------------------------

This app also contains the HTML5 Boilerplate default 404 page, with no template tags.


LICENSE
=============
This software is distributed using MIT license, see LICENSE file for more details.

Release files for django-h5bp 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-h5bp 0.3.4
File Size Uploaded
django-h5bp-0.3.4.tar.gz 262.9 kB Details

Release files / django-h5bp-0.3.4.tar.gz

Download URL django-h5bp-0.3.4.tar.gz
Size 262.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1e6b03a6c756f8075cfdd9a929cc8ef1a02dd1225f9d2ab49ef17ef8e3318b72
BLAKE2b-256 checksum
How to use checksums
50d0dfeeeb3712aef6b2e33dfd09a4df293857d0fc37d9d1b93c11e7cc28a5fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.4 This release

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page