A simple python package to generate HTML head tags.
Project description
pyhead
The Python HTML <head>
filler.
from pyhead import Head
head = Head(page_title="My Page")
head.set_page_description("My Page Description")
head.set_page_keywords(["keyword1", "keyword2"])
{# using jinja to output #}
<head>
{{ head }}
</head>
<!-- output -->
<head>
<title>My Page</title>
<meta name="description" content="My Page Description">
<meta name="keywords" content="keyword1, keyword2">
</head>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyhead-0.3.tar.gz
(4.3 kB
view hashes)
Built Distribution
pyhead-0.3-py3-none-any.whl
(3.1 kB
view hashes)