Merge pull request #51 from malept/assets/source-paths

Assets: add support for specifying additional source load paths
This commit is contained in:
Justin Mayer
2013-10-08 05:09:53 -07:00
2 changed files with 20 additions and 0 deletions

View File

@@ -89,6 +89,18 @@ LessCSS's binary:
ASSET_CONFIG = (('closure_compressor_optimization', 'WHITESPACE_ONLY'),
('less_bin', 'lessc.cmd'), )
If you wish to place your assets in locations other than the theme output
directory, you can use ``ASSET_SOURCE_PATHS`` in your settings file to provide
webassets with a list of additional directories to search, relative to the
theme's top-level directory. For example:
.. code-block:: python
ASSET_SOURCE_PATHS = (
'vendor/css',
'scss',
)
.. _Webassets: https://github.com/miracle2k/webassets
.. _Webassets documentation: http://webassets.readthedocs.org/en/latest/builtin_filters.html
.. _environment's register() method: http://webassets.readthedocs.org/en/latest/environment.html#registering-bundles