{ "info": { "author": "Patrick Paul", "author_email": "pztrick44@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "### What is DjScript?\n\n`djscript` is a Python package for using **RapydScript** in your Django application. This package installs NodeJS/npm/RapydScript in an isolated virtual environment and includes utilities for writing RapydScript `*.pjs` files in your web application.\n\n### What is RapydScript?\n\nFrom the RapydScript README: \"RapydScript (pronounced 'RapidScript') is a pre-compiler for JavaScript, similar to CoffeeScript, but with cleaner, more readable syntax. The syntax is very similar to Python, but allows JavaScript as well.\"\n\n* Github: \n* Community: \n\n### Usage\n\nFor Django development, there is a convenient `djurl` template tag which will freshly compile your RapydScript on each page request. On production, the static compiled javascript is served directly from your `static/` folder.\n\n```\n # settings.py\n PROJECT_HOME = os.path.abspath(os.path.dirname(__file__))\n STATIC_ROOT = os.path.join(PROJECT_HOME, 'static') + '/'\n STATIC_URL = '/static/'\n\n DJSCRIPT_PATHS = {\n 'path.to.rapydscript.file': 'file.js'\n }\n```\n\n```\n # template.html\n {% djurl 'path.to.rapydscript.file' %}\n```\n\nYour source file (e.g. *path/to/rapydscript/file.pjs*) must end in the `.pjs` extension. Your target file destination is the value specified in settings.py. Your web server must have correct file permissions to write to your `static/` folder.\n\n### Installation\n\n```\n pip install djscript\n```", "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/pztrick/djscript/", "keywords": "", "license": "MIT-LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "DjScript", "package_url": "https://pypi.org/project/DjScript/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/DjScript/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/pztrick/djscript/" }, "release_url": "https://pypi.org/project/DjScript/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Django package for using the RapydScript javascript pre-compiler", "version": "0.1.0" }, "last_serial": 1123460, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6dcad5982f9fcb014cc52467d493851a", "sha256": "bcbc656d51e4571e5d7b63d8ee2c75637beb02357291f41830ee206d036d8830" }, "downloads": -1, "filename": "DjScript-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6dcad5982f9fcb014cc52467d493851a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4001, "upload_time": "2014-06-13T00:11:00", "url": "https://files.pythonhosted.org/packages/7b/c5/c15999b42d6b4e3c8124ca29fe5d8059d66cbc1949080eba953e51584302/DjScript-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6dcad5982f9fcb014cc52467d493851a", "sha256": "bcbc656d51e4571e5d7b63d8ee2c75637beb02357291f41830ee206d036d8830" }, "downloads": -1, "filename": "DjScript-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6dcad5982f9fcb014cc52467d493851a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4001, "upload_time": "2014-06-13T00:11:00", "url": "https://files.pythonhosted.org/packages/7b/c5/c15999b42d6b4e3c8124ca29fe5d8059d66cbc1949080eba953e51584302/DjScript-0.1.0.tar.gz" } ] }