{ "info": { "author": "Dan Cobb", "author_email": "cobbdb@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Pre-processors", "Topic :: Utilities" ], "description": "JSInclude |Build Status| |Coverage Status| |PyPI version| |Download Count|\n==========================================================================\n\nA Django 1.3+ tag to keep JavaScript out of your templates.\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n $ pip install jsinclude\n\nExample of use:\n\n::\n\n \n {% load jsinclude %}\n {% with 31 as age %}\n {% jsinclude widgets/profile.js \"name=Jane Doe\" age gender=female %}\n {% endwith %}\n\n::\n\n // profile.js\n console.log('My name is ' + $jsi.name);\n console.log(\"I'm a \" + $jsi.age + ' year old ' + $jsi.gender);\n\nSyntax:\n\n::\n\n {% jsinclude [{arg}] %}\n\n--------------\n\nDjango-tag API\n--------------\n\nThe JSInclude tag has two sections. First argument is the script\npath.\n\n::\n\n # Path can be a string..\n {% jsinclude literal/path/to/script.js %}\n # ..or a context variable.\n # context['mypath'] == \"my/script/path.js\"\n {% jsinclude mypath %}\n\nThe second argument section is where you can pass in your template\ndata into the JavaScript file. There are three variable format\noptions, and there is no limit to the number of varialbes you can\npass in.\n\n