semvec/pypi-packages huggingface dataset:
django-classymail 0.2
E-mails in Django. Classy.
License: BSD

Django-ClassyMail
=================

.. image:: https://secure.travis-ci.org/rafales/django-classymail.png?branch=master
   :target: http://travis-ci.org/rafales/django-classymail

Django makes it really easy to send simple e-mail messages. But e-mails
sometimes gets really complicated and un-DRY. That's where ClassyMail
steps in.

Django-ClassyMail is a library for building e-mail messages in a fashion
similar to django's class based views.

You can create mixins, override attributes with keyword arguments and
there's a lot of builtin functionality. Just like class based views.

Django-ClassyMail will handle css inlining, timezone, language and urls
for you.

Read the docs for more info:

https://django-classymail.readthedocs.org/en/latest/

And here's an example::

    class UserMixin(ClassyMail):
        """
        Sets language and timezone according to user preferences, adds "user" to
        template context and sets recipient to user's email address.
        """
        user = None

        def get_timezone(self):
            return self.user.get_profile().timezone

        def get_language(self):
            return self.user.get_profile().language

        def get_to(self):
            return [self.user.email]

        def get_context_data(self):
            data = super(UserMixin, self).get_context_data()
            data['user'] = self.user
            return data

    class WelcomeEmail(UserMixin, ClassyMail):
        html_template_name = 'emails/welcome.html'
        text_template_name = 'emails/welcome.txt'

        def get_subject(self):
            return _("Welcome %s! Thanks for joining us!") % self.user.first_name
js.bootstrap_colorpicker 2012.09.29-1
Fanstatic packaging of Colorpicker for Bootstrap (bootstrap-colorpicker.js)
License: BSD

js.bootstrap_colorpicker
========================

.. contents::

Introduction
------------

This library packages `Colorpicker for Bootstrap`_ for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org
.. _`Colorpicker for Bootstrap`: http://www.eyecon.ro/bootstrap-colorpicker/

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js.bootstrap_colorpicker``) are published to some URL.



CHANGES
=======

2012.09.29-1 (2013-03-18)
-------------------------

- Bugs in docs fixed.

2012.09.29 (2013-03-17)
-----------------------

- Initial release.



How to use?
===========

This should be setup before rendering a page. See `fanstatic`_ for more
information::

  >>> from fanstatic import init_needed
  >>> needed = init_needed(base_url='http://localhost')

You can import ``bootstrap_colorpicker`` from ``js.bootstrap_colorpicker`` and ``need``
it where you want these resources to be included on a page::

  >>> from js.bootstrap_colorpicker import bootstrap_colorpicker
  >>> bootstrap_colorpicker.need()

Render the inclusion::

  >>> print needed.render()
  <link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/bootstrap/css/bootstrap.css" />
  <link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/bootstrap-colorpicker/css/colorpicker.css" />
  <script type="text/javascript" src="http://localhost/fanstatic/jquery/jquery.js"></script>
  <script type="text/javascript" src="http://localhost/fanstatic/bootstrap/js/bootstrap.js"></script>
  <script type="text/javascript" src="http://localhost/fanstatic/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script>
js.bootstrap_datepicker 2013.03.12-1
Fanstatic packaging of Datepicker for Bootstrap (bootstrap-datepicker.js)
License: BSD

js.bootstrap_datepicker
=======================

.. contents::

Introduction
------------

This library packages `Datepicker for Bootstrap`_ for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org
.. _`Datepicker for Bootstrap`: http://www.eyecon.ro/bootstrap-datepicker/

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js.bootstrap_datepicker``) are published to some URL.



CHANGES
=======

2013.03.12-1 (2013-03-18)
-------------------------

- Bugs in docs fixed.

2013.03.12 (2013-03-17)
-----------------------

- Initial release.



How to use?
===========

This should be setup before rendering a page. See `fanstatic`_ for more
information::

  >>> from fanstatic import init_needed
  >>> needed = init_needed(base_url='http://localhost')

You can import ``bootstrap_datepicker`` from ``js.bootstrap_datepicker`` and ``need``
it where you want these resources to be included on a page::

  >>> from js.bootstrap_datepicker import bootstrap_datepicker
  >>> bootstrap_datepicker.need()

Render the inclusion::

  >>> print needed.render()
  <link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/bootstrap/css/bootstrap.css" />
  <link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/bootstrap-datepicker/css/datepicker.css" />
  <script type="text/javascript" src="http://localhost/fanstatic/jquery/jquery.js"></script>
  <script type="text/javascript" src="http://localhost/fanstatic/bootstrap/js/bootstrap.js"></script>
  <script type="text/javascript" src="http://localhost/fanstatic/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
js.jquery_validate 1.11.0-1
Fanstatic packaging of validate for jQuery (jquery.validate.js)
License: BSD

js.jquery_validate
==================

.. contents::

Introduction
------------

This library packages `jQuery Validation Plugin`_ for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org
.. _`jQuery Validation Plugin`: http://bassistance.de/jquery-plugins/jquery-plugin-validation/

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js.jquery_validate``) are published to some URL.


CHANGES
=======

1.11.0-1 (2013-03-18)
---------------------

- Some bugs in docs fixed.

1.11.0 (2013-03-17)
-------------------

- Initial release.


How to use?
===========

This should be setup before rendering a page. See `fanstatic`_ for more
information::

  >>> from fanstatic import init_needed
  >>> needed = init_needed(base_url='http://localhost')

You can import ``jquery_validate`` from ``js.jquery_validate`` and ``need``
it where you want these resources to be included on a page::

  >>> from js.jquery_validate import jquery_validate
  >>> jquery_validate.need()

Render the inclusion::

  >>> print needed.render()
  <script type="text/javascript" src="http://localhost/fanstatic/jquery/jquery.js"></script>
  <script type="text/javascript" src="http://localhost/fanstatic/jquery-validate/jquery.validate.js"></script>