{ "info": { "author": "Alessandro Molina", "author_email": "alessandro.molina@axant.it", "bugtrack_url": null, "classifiers": [], "description": "About tgext.webassets\n---------------------\n\ntgext.webassets is a TurboGears2 extension for assets management\nbased on `WebAssets `_.\n\nInstalling\n----------\n\ntgext.webassets can be installed from pypi::\n\n pip install tgext.webassets\n\nshould just work for most of the users.\n\nUsage\n-----\n\nTo enable tgext.webassets put inside your application\n``config/app_cfg.py`` the following::\n\n from tgext import webassets\n\n webassets.plugme(base_config, bundles={\n 'js_all': webassets.Bundle('javascript/jquery.js', 'javascript/bootstrap.min.js',\n filters='rjsmin', output='assets/js_all.js')\n })\n\nor you can use ``tgext.pluggable`` when available::\n\n from tgext.pluggable import plug\n from tgext.webassets import Bundle\n\n plug(base_config, 'tgext.webassets', bundles={\n 'js_all': Bundle('javascript/jquery.js', 'javascript/bootstrap.min.js',\n filters='rjsmin', output='assets/js_all.js')\n })\n\nBy default ``tgext.webassets`` will load and save assets inside the turbogears\n``static_files`` path. Which is usually the ``public`` directory inside your\napplication.\n\n.. note::\n\n Due to ``tgext.webassets`` writing files to the same place where it loads them,\n it is suggested you add a subdirectory to the ``output`` option of your bundles,\n so that the resulting files do not mix with the source files.\n\nThe webassets environment will then be available as ``tg.app_globals.webassets``, so you can\nuse it inside your templates to load the assets::\n\n \n\nEach registered bundle will be available as a property of the ``g.webassets`` object\ninside templates.\n\nBundles\n-------\n\n``\u0167gext.webassets`` accepts the bundles inside the ``bundles`` dictionary. Each entry\ncan be a ``Bundle`` instance or a `webassets loader `_\nin case you want to load bundles from a configuration file.\n\nConfiguring\n-----------\n\nOptions available in `WebAssets Environment `_\nare also available in tgext.webassets, pass them as arguments to the ``plug`` (inside the\n``options`` dictionary when using ``tgext.webassets.plugme``) or provide the through AppConfig\nor *.ini* file with ``webassets.`` namespace.\n\nSome have values that are inherited from your project configuration if not specified:\n\n * debug: If webassets is running in debug mode or not, by default is ``False``.\n * base_dir: The directory assets will be located. By default is your project ``static_files`` directory.\n * base_url: The url static assets are served, by default ``/``. Use this option to serve them from a CDN.\n * cache: If we should use webassets cache (if boolean), or override default path to cache directory\n by default assets are cached inside the ``.webassets-cache`` directory inside ``base_dir``.\n\nBuiltin Filters\n---------------\n\n``tgext.webassets`` comes with builtin the ``rjsmin`` and ``cssmin`` filter,\nall `webassets filters `_\nwork if the required tools are available.", "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/amol-/tgext.webassets", "keywords": "turbogears2.extension", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "tgext.webassets", "package_url": "https://pypi.org/project/tgext.webassets/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tgext.webassets/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/amol-/tgext.webassets" }, "release_url": "https://pypi.org/project/tgext.webassets/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "assets management extension for TurboGears2", "version": "0.0.2" }, "last_serial": 1498901, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "208a648566b596cb95298fd836ad5894", "sha256": "d071b90e35d2c071cfe83d691ee0d5c36361cc5e329c17b9c9ae079a8788936a" }, "downloads": -1, "filename": "tgext.webassets-0.0.1.tar.gz", "has_sig": false, "md5_digest": "208a648566b596cb95298fd836ad5894", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3954, "upload_time": "2015-03-07T23:35:45", "url": "https://files.pythonhosted.org/packages/c9/76/476098e05cf4c56b3c30c663b59f078b2e52caa34f7ca889ff1f58c06407/tgext.webassets-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4f4e4e18466decdc63439e8586475a0a", "sha256": "cb632cff14b957e858bb64ca680d3490284ac654e6d7c3ccac33282e4ef764d8" }, "downloads": -1, "filename": "tgext.webassets-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4f4e4e18466decdc63439e8586475a0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3988, "upload_time": "2015-04-10T10:19:59", "url": "https://files.pythonhosted.org/packages/bd/8f/3b6c83c5f3c2a023a4b3903798e5dbd2188a06d7b7d53573056f724a9ba3/tgext.webassets-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4f4e4e18466decdc63439e8586475a0a", "sha256": "cb632cff14b957e858bb64ca680d3490284ac654e6d7c3ccac33282e4ef764d8" }, "downloads": -1, "filename": "tgext.webassets-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4f4e4e18466decdc63439e8586475a0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3988, "upload_time": "2015-04-10T10:19:59", "url": "https://files.pythonhosted.org/packages/bd/8f/3b6c83c5f3c2a023a4b3903798e5dbd2188a06d7b7d53573056f724a9ba3/tgext.webassets-0.0.2.tar.gz" } ] }