{ "info": { "author": "Daniel Quinn", "author_email": "code@danielquinn.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# django-crocodile\n\nA simple CSS and Javascript aggregator for django\n\nIf you're looking for a simple way to aggregate all of your various style\nsheets into a single download, and do the same for your JavaScript files, this\nis a good start. Here's how it works:\n\nThis is what you probably have on your site. If you don't, then you probably\ndon't need an aggregator:\n\n``` xml\n{% block css %}\n \n \n \n \n{% endblock css %}\n\n{% block js %}\n \n \n \n \n{% endblock js %}\n```\n\nThis isn't ideal, since you're left with multiple server hits, sometimes to\nremote servers. In some of the more complex setups, your site could have 10 or\neven 20 CSS and/or JS files. What's more, you probably have `{% block css %}`\nand `{% block js %}` subclassed elsewhere on your site, so this list of files\nis variable.\n\nCrocodile is setup with a simple template tag:\n\n``` xml\n{% aggregate_css %}\n {% block css %}\n \n \n \n \n {% endblock css %}\n{% endaggregate_css %}\n\n{% aggregate_js %}\n {% block js %}\n \n \n \n \n {% endblock js %}\n{% endaggregate_js %}\n```\n\nAnd the output looks something like this:\n\n``` xml\n