Provide a new API for plugins to add HTML to the <head> of the site

This commit is contained in:
Raphael Michel
2015-03-15 23:50:30 +01:00
parent c23468e266
commit f54515ba0a
9 changed files with 69 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
.. highlight:: python
:linenothreshold: 5
General APIs
============
This page lists some general signals and hooks which do not belong to a
specific type of plugin but might come in handy for various plugins.
HTML head injection
-------------------
These two signals allow you to put code inside the HTML ``<head>`` tag
of every page. One signal is for the frontend, one for the backend. You
won't get any arguments and can return plain HTML.
* ``pretix.presale.signals.html_head``
* ``pretix.control.signals.html_head``

View File

@@ -9,3 +9,4 @@ Contents:
plugins
restriction
payment
general