{ "info": { "author": "Mikko Hellsing", "author_email": "mikko@aino.se", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: JavaScript", "Programming Language :: Python" ], "description": "============\naino-jstools\n============\n\naino-jstools is a set of tools for working with JavaScript and Django.\nPrimarily it compiles javascripts.\n\n\nDesign background\n-----------------\nWe wanted to make a tool that made including a bunch of JavaScripts in a\ntemplate easy and clean and compiling all those JavaScripts into packed pieces\nin production for optimal performance. The other goal we wanted to achive was\nto expose urls defined in ``urls.py``, ``MEDIA_URL``, ``DEBUG`` settings to\nJavaScript code. Our future includes making a cleaner implementation for i18n\nin JavaScript than the one provided by Django.\n\n\nRequirements\n------------\n- Django 1.x\n- Python 2.5+\n- Java (for compiling JavaScripts)\n\n\nInstall\n-------\nInclude ``jstools`` in ``INSTALLED_APPS`` in your project settings.\nOptionally include the jstools/urls.py in your ``urls.py``::\n\n (r'^jstools/', include('jstools.urls'))\n\n\nTemplate usage\n--------------\nFirst define your scripts in a template as follows::\n\n {% scripts \"js/mysite-min.js\" %}\n http://yui.yahooapis.com/3.1.0/build/yui/yui-min.js\n js/a.js\n js/b.js\n {% url jshelper %}\n {% endscripts %}\n\nWhen ``settings.DEBUG`` is ``True`` this will translate to::\n\n \n \n \n \n\nWhen ``settings.DEBUG`` is ``False`` this will translate to::\n\n \n\nwhere ``TIMESTAMP`` is based on modification date of\n``{{ MEDIA_ROOT }}js/myste-min.js``\n\n\nCompiling\n---------\nCompiling all defined scripts is as simple as running::\n\n python manage.py buildjs\n\nIf you are using the default ``filesystem`` and/or\n``app_directories`` this management command will find all templates with\n``{% scripts %}`` tags and compile its contents into the first argument of the\ntag.\n\n\njshelper view\n-------------\nThis view will output named urls, ``settings.MEDIA_URL``, ``settings.DEBUG``\n(I suggest you override this in your template unless you want to recompile the\nscript when you change your ``DEBUG`` setting) for use in your JavaScript code. You\nwill have access to a JavaScript object named ``JSTOOLS`` by default, you can\nchange the name by setting ``JSTOOLS_NAMESPACE``.\n\n``JSTOOLS.settings.MEDIA_URL``\n ``settings.MEDIA_URL``\n\n``JSTOOLS.settings.DEBUG``\n ``settings.DEBUG``\n\n``JSTOOLS.get_url``\n This function will get named urls defined in your ``urls.py``. First argument is\n the name of the named url, subsequent arguments are arguments passed to that\n pattern. Examples::\n\n JSTOOLS.get_url('jshelper');\n JSTOOLS.get_url('blog_entry', 2010, 04, 25, 'aino-jstools');", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aino/aino-jstools", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "aino-jstools", "package_url": "https://pypi.org/project/aino-jstools/", "platform": "any", "project_url": "https://pypi.org/project/aino-jstools/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/aino/aino-jstools" }, "release_url": "https://pypi.org/project/aino-jstools/0.1.0.6/", "requires_dist": null, "requires_python": null, "summary": "JavaScript tools for Django", "version": "0.1.0.6" }, "last_serial": 4528465, "releases": { "0.1.0.0": [ { "comment_text": "", "digests": { "md5": "50ab1f1bda35e6ef81208d9e3d0b959f", "sha256": "0ab48152192fb7dbbd1acc68aa236142068888b2f732d082bab7afe039be1f99" }, "downloads": -1, "filename": "aino-jstools-0.1.0.0.tar.gz", "has_sig": false, "md5_digest": "50ab1f1bda35e6ef81208d9e3d0b959f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3948078, "upload_time": "2010-04-25T19:50:07", "url": "https://files.pythonhosted.org/packages/fc/72/9b6f3d5166310a65956346102c390cf69715b6e7c6c93c2b3cb09c4464a5/aino-jstools-0.1.0.0.tar.gz" } ], "0.1.0.1": [ { "comment_text": "", "digests": { "md5": "54879f446f08d7e90323ee023a93ba59", "sha256": "4d165bd43c7decb782338eab2d1273390d4f345a325f2e30d990ea8f9195efc8" }, "downloads": -1, "filename": "aino-jstools-0.1.0.1.tar.gz", "has_sig": false, "md5_digest": "54879f446f08d7e90323ee023a93ba59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3949504, "upload_time": "2010-06-28T16:13:46", "url": "https://files.pythonhosted.org/packages/53/d0/ea4133c0c4f2f7a5579b901c833f1912e0ded9295fef738c2ab085fe62ab/aino-jstools-0.1.0.1.tar.gz" } ], "0.1.0.2": [ { "comment_text": "", "digests": { "md5": "d6f22f4616228b28b6d8e1e90931dfec", "sha256": "d77358855f1241138b7ab7645c4f06b4c040f8c1612236d1518e9dc50cd0950d" }, "downloads": -1, "filename": "aino-jstools-0.1.0.2.tar.gz", "has_sig": false, "md5_digest": "d6f22f4616228b28b6d8e1e90931dfec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3949203, "upload_time": "2010-12-07T18:06:11", "url": "https://files.pythonhosted.org/packages/09/4b/86a7438f4626491e2a25d2ecaf6b0cf25197c9a3289b17a2eba9d6538617/aino-jstools-0.1.0.2.tar.gz" } ], "0.1.0.3": [ { "comment_text": "", "digests": { "md5": "5462415fac1935d84b81986ad68c3b0e", "sha256": "bc3007906f135ba950a9be2448c74290bc0854b11d5e5b0a4a9a709909a32c9c" }, "downloads": -1, "filename": "aino-jstools-0.1.0.3.tar.gz", "has_sig": false, "md5_digest": "5462415fac1935d84b81986ad68c3b0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3783213, "upload_time": "2011-02-02T00:22:19", "url": "https://files.pythonhosted.org/packages/6d/39/62c21ee584f2e4f8db7f76470f9a593a882a1657dec1fd0a0c7c2fc07ea8/aino-jstools-0.1.0.3.tar.gz" } ], "0.1.0.4": [ { "comment_text": "", "digests": { "md5": "a2cb6ec2ca1291ee62852bf617b82b07", "sha256": "0eef40d8d738fa1c7f310a0ebfb647a7aa621888c65eaf7058ef7af6075e04a0" }, "downloads": -1, "filename": "aino-jstools-0.1.0.4.tar.gz", "has_sig": false, "md5_digest": "a2cb6ec2ca1291ee62852bf617b82b07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3780859, "upload_time": "2011-02-15T16:36:57", "url": "https://files.pythonhosted.org/packages/88/70/464f0a199b46ce52bca4b731d292f693c14f3731da520dee5b9dff0d0c86/aino-jstools-0.1.0.4.tar.gz" } ], "0.1.0.5": [ { "comment_text": "", "digests": { "md5": "81216e28ca60e5bf3f3b0cefccf1211d", "sha256": "864e28dd9124eec9b0446a67d4072a0dbf04bef94ae37bce4c75a00d75280ef3" }, "downloads": -1, "filename": "aino-jstools-0.1.0.5.tar.gz", "has_sig": false, "md5_digest": "81216e28ca60e5bf3f3b0cefccf1211d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3779145, "upload_time": "2011-02-20T18:36:09", "url": "https://files.pythonhosted.org/packages/15/56/13d959781d6a5d99cf44de25dc9c7fdfc33e38036926e81b020094737a5b/aino-jstools-0.1.0.5.tar.gz" } ], "0.1.0.6": [ { "comment_text": "", "digests": { "md5": "e806d41cf1f6da5654c05ed92766b7ce", "sha256": "8f32c207f6247db724b2a4cde6ac6587b4b4193347119c57a6ae27954feb54a5" }, "downloads": -1, "filename": "aino-jstools-0.1.0.6.tar.gz", "has_sig": false, "md5_digest": "e806d41cf1f6da5654c05ed92766b7ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3780875, "upload_time": "2011-03-25T11:38:35", "url": "https://files.pythonhosted.org/packages/4d/30/ff1fda71b960891bc5dd452d0ff42e9e8e7ab7c59a6f6be16209236e6142/aino-jstools-0.1.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e806d41cf1f6da5654c05ed92766b7ce", "sha256": "8f32c207f6247db724b2a4cde6ac6587b4b4193347119c57a6ae27954feb54a5" }, "downloads": -1, "filename": "aino-jstools-0.1.0.6.tar.gz", "has_sig": false, "md5_digest": "e806d41cf1f6da5654c05ed92766b7ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3780875, "upload_time": "2011-03-25T11:38:35", "url": "https://files.pythonhosted.org/packages/4d/30/ff1fda71b960891bc5dd452d0ff42e9e8e7ab7c59a6f6be16209236e6142/aino-jstools-0.1.0.6.tar.gz" } ] }