{ "info": { "author": "HubSpot Dev Team", "author_email": "devteam+asset_bender_django@hubspot.com", "bugtrack_url": null, "classifiers": [], "description": "## Usage:\n\nFirst, make sure you've installed asset_bender: https://github.com/HubSpot/asset_bender/tree/master\n\nSecondly, make sure that `PROJ_NAME`, `PROJ_DIR`, `BENDER_S3_DOMAIN`, and `BENDER_CDN_DOMAIN` are set in your\nsettings. `PROJ_NAME` should match the name in static_conf.json and `PROJ_DIR` needs to point to the python\nmodule path (via something like `PROJ_DIR = dirname(realpath(__file__))`). \n\n`BENDER_S3_DOMAIN` is the domain that points to your S3 bucket and `BENDER_CDN_DOMAIN` is the CDN domain in\nfront of S3 (if you have one).\n\nThirdly, make sure that you've included these lines in your Manifest.in:\n\n global-include static_conf.json\n global-include prebuilt_recursive_static_conf.json\n\n\nNext, in your app's context processor do:\n\n```python\nfrom django.template import RequestContext\nfrom asset_bender.bundling import BenderAssets\n\ndef my_context_processor(request):\n context = RequestContext(request)\n\n bender_assets = BenderAssets([\n 'my_project/static/js/my_project_bundle.js', \n 'my_project/static/css/my_project_bundle.css', \n\n 'some_library/static/js/some_library_bundle.js', \n 'some_library/static/css/some_library_bundle.js'\n\n ... etc ...\n ], request.GET)\n\n context.update(bender_assets.generate_context_dict())\n return context\n```\n\nAnd lastly, in your base template you'll need to include these templates:\n\n\n```html\n\n ...\n {% include \"asset_bender/scaffold/head.html\" %}\n ...\n\n\n\n ...\n {% include \"asset_bender/scaffold/end_of_body.html\" %}\n\n```\n\n\nTo manually include a particular static asset in your HTML, use the template tag:\n \n```\n{% load asset_bender_tags %}\n{% bender_url \"project_name/static/js/my-file.js\" %}\n```\n\nThe tag will output a full url with the proper domain and version number (as specified by this projects's dependencies).", "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/HubSpot/asset_bender_django", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "asset_bender", "package_url": "https://pypi.org/project/asset_bender/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/asset_bender/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/HubSpot/asset_bender_django" }, "release_url": "https://pypi.org/project/asset_bender/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "A django runtime implementation for Asset Bender", "version": "0.2.1" }, "last_serial": 1294203, "releases": { "0.1.12": [ { "comment_text": "", "digests": { "md5": "6189aefcf9702cd74332dd7820ab0eb4", "sha256": "bbb1442e93ebac78fb41a16b4e1128e148d0aa83d200d77e9ea025d77bd59805" }, "downloads": -1, "filename": "asset_bender-0.1.12.tar.gz", "has_sig": false, "md5_digest": "6189aefcf9702cd74332dd7820ab0eb4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13570, "upload_time": "2014-11-04T16:48:33", "url": "https://files.pythonhosted.org/packages/3f/ea/b2c0529903dfe4649c0b4d7831dddda62ac920894ad67766d832353df218/asset_bender-0.1.12.tar.gz" } ], "0.1.14": [ { "comment_text": "", "digests": { "md5": "143915329704a71db662d09b3fd929e4", "sha256": "f9f4cb30030afb4215d0000b79f50cdeb5348211d8c1810870262df6bf9b0e4b" }, "downloads": -1, "filename": "asset_bender-0.1.14.tar.gz", "has_sig": false, "md5_digest": "143915329704a71db662d09b3fd929e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13568, "upload_time": "2014-11-04T16:48:54", "url": "https://files.pythonhosted.org/packages/7a/fe/07fe1d1505522c04975ce08ed427cbd3c5be456bf9e0814a1c28a714fd65/asset_bender-0.1.14.tar.gz" } ], "0.1.20": [ { "comment_text": "", "digests": { "md5": "8ffedb3c49750e74466ce72f25b87bab", "sha256": "6fce61ecef4457ff3b8f3b4a703d98aa2c5cbadf40693d8e15f34016e15c373b" }, "downloads": -1, "filename": "asset_bender-0.1.20.tar.gz", "has_sig": false, "md5_digest": "8ffedb3c49750e74466ce72f25b87bab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14840, "upload_time": "2014-11-04T16:49:16", "url": "https://files.pythonhosted.org/packages/41/d0/dc16b09ffa9d72bd4e956081c374da01f4ef40eaf6f986d767f08555921e/asset_bender-0.1.20.tar.gz" } ], "0.1.21": [ { "comment_text": "", "digests": { "md5": "e73e2ec68cd859b99fa2ff6507fa5ac7", "sha256": "d80f0ae83723a3ddf29a14e45bbccaf4592c2ec7ba42e27f6f817f90571a59c4" }, "downloads": -1, "filename": "asset_bender-0.1.21.tar.gz", "has_sig": false, "md5_digest": "e73e2ec68cd859b99fa2ff6507fa5ac7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14845, "upload_time": "2014-11-04T16:49:26", "url": "https://files.pythonhosted.org/packages/49/4f/b45f7f5ce1c2d97006d235e5edcd9c2b4a8a8843005a8b13d66636f2059e/asset_bender-0.1.21.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "e61b0cf62a3a89a4ecf2ae0f92fa3c2a", "sha256": "89dfa8c5b208975a3cc99560362219c6fe90069423d0356c674c63676fdcc8e5" }, "downloads": -1, "filename": "asset_bender-0.2.1.tar.gz", "has_sig": false, "md5_digest": "e61b0cf62a3a89a4ecf2ae0f92fa3c2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14848, "upload_time": "2014-11-04T16:45:27", "url": "https://files.pythonhosted.org/packages/15/cc/358c65df533e2e1db9bad55ecff9b3e5bdef42e6bc109782e3683caf9f6b/asset_bender-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e61b0cf62a3a89a4ecf2ae0f92fa3c2a", "sha256": "89dfa8c5b208975a3cc99560362219c6fe90069423d0356c674c63676fdcc8e5" }, "downloads": -1, "filename": "asset_bender-0.2.1.tar.gz", "has_sig": false, "md5_digest": "e61b0cf62a3a89a4ecf2ae0f92fa3c2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14848, "upload_time": "2014-11-04T16:45:27", "url": "https://files.pythonhosted.org/packages/15/cc/358c65df533e2e1db9bad55ecff9b3e5bdef42e6bc109782e3683caf9f6b/asset_bender-0.2.1.tar.gz" } ] }