Metadata-Version: 2.0
Name: cdn-assets
Version: 0.2.3
Summary: Using CDN Assets(mainly JS and css) instead of downloading asset by your self.
Home-page: https://github.com/lsc20051426/cdn-asserts
Author: L
Author-email: lsc20051426@163.com
License: BSD License
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.8
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Dist: django-tag-parser
==========
CDN Assets
==========
This package help you to use CDN Assets instead of downloading js and css by your self.
Quick start
-----------
0. Install this package:
pip install cdn_assets
1. Add "cdn-assets" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'cdn_assets',
]
2. Using filter we provide like this::
{% load cdn_assets %}
{% cdn bootcss %}
{% asset bootstrap 3.3.5 css bootstrap.min css %}
{% asset jquery 2.2.1 jquery.min js %}
{% endcdn %}
This will output ::
Explaination ::
{% cdn bootcss %}
{% asset jquery 2.2.1 jquery.min js %}
{% endcdn %}
The last parameter for asset filter is js, It would generate