Metadata-Version: 2.1
Name: django-ajaxview
Version: 1.0.4
Summary: Django Ajax base view
Home-page: https://github.com/kkinder/django-ajaxview
Author: Ken Kinder
Author-email: ken+ajaxview@kkinder.com
License: MIT
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Description-Content-Type: text/markdown
License-File: LICENSE

# Django Ajax View
Simple Django library for quickly using Ajax calls in regular views.

For example, suppose you have a regular TemplateView in Django, which you want to add Ajax interactivity to. Simply add an `@ajax` method to your controller, and it becomes accessible in the HTML template side as a function:

```python
class MyController(AjaxView):
    ...

    @ajax
    def greetings(self, name):
        return f'Why hello there, {name}!'
```

Inside the rendered HTML:

```javascript
const message = await greetings({name: 'Ken'})
```

See [documentation for details](https://django-ajaxview.readthedocs.io/). Licensed under MIT.


