Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/django-compressor/django-compressor
/ functions
Functions
454 in github.com/django-compressor/django-compressor
⨍
Functions
454
◇
Types & classes
135
↳
Endpoints
6
↓ 1 callers
Function
get_apps_with_staticfiles_using_appconfig
(apps)
compressor/tests/test_utils.py:18
↓ 1 callers
Method
get_compressor
(self, context, kind, log, verbosity)
compressor/templatetags/compress.py:39
↓ 1 callers
Method
get_file_path
(self, url)
compressor/filters/datauri.py:29
↓ 1 callers
Method
get_filecontent
Reads file contents using given `charset` and returns it as text.
compressor/base.py:200
↓ 1 callers
Method
get_filepath
Returns file path for an output file based on contents. Returned path is relative to compressor storage's base url, for exam
compressor/base.py:130
↓ 1 callers
Function
get_hashed_content
(filename, length=12)
compressor/cache.py:123
↓ 1 callers
Method
get_init_context
(self, offline_context)
compressor/offline/django.py:116
↓ 1 callers
Method
get_nodelist
(self, node, original, context=None)
compressor/offline/django.py:129
↓ 1 callers
Method
get_nodelist
(self, node)
compressor/offline/jinja2.py:111
↓ 1 callers
Method
get_template_name
Returns the template path for the given mode.
compressor/base.py:92
↓ 1 callers
Function
get_templatetag_cachekey
(compressor, mode, kind)
compressor/cache.py:99
↓ 1 callers
Function
handle_extendsnode
Create a copy of Node tree of a derived template replacing all blocks tags with the nodes of appropriate blocks. Also handles {{ block.super }
compressor/offline/django.py:20
↓ 1 callers
Method
handle_extensions
organizes multiple extensions that are separated with commas or passed by using --extension/-e multiple times. for example:
compressor/management/commands/compress.py:359
↓ 1 callers
Method
list
(self, ignore_patterns)
compressor/finders.py:15
↓ 1 callers
Function
main
()
compressor/tests/precompiler.py:6
↓ 1 callers
Method
output
(self, *args, **kwargs)
compressor/js.py:38
↓ 1 callers
Method
output_file
The output method that saves the content to a file and renders the appropriate template with the file's URL.
compressor/base.py:386
↓ 1 callers
Method
post_process_url
Extra URL processing, to be overridden in subclasses.
compressor/filters/css_default.py:111
↓ 1 callers
Method
precompile
Processes file using a pre compiler. This is the place where files like coffee script are processed.
compressor/base.py:298
↓ 1 callers
Method
process_node
(self, template, context, node)
compressor/offline/django.py:119
↓ 1 callers
Method
process_template
(self, template, context)
compressor/offline/django.py:113
↓ 1 callers
Method
render_cached
If enabled checks the cache for the given compressor's cache key and return a tuple of cache key and output
compressor/templatetags/compress.py:91
↓ 1 callers
Method
render_node
(self, template, context, node)
compressor/offline/django.py:126
↓ 1 callers
Method
render_nodelist
(self, template, context, node)
compressor/offline/django.py:122
↓ 1 callers
Method
render_offline
If enabled and in offline mode, and not forced check the offline cache and return the result if given
compressor/templatetags/compress.py:66
↓ 1 callers
Function
script_prefix
Override ``SCRIPT_NAME`` WSGI param, yield, then restore its original value. :param new_prefix: New ``SCRIPT_NAME`` value.
compressor/tests/test_offline.py:94
↓ 1 callers
Method
setUp
(self)
compressor/tests/test_offline.py:117
↓ 1 callers
Method
split_contents
(self)
compressor/css.py:9
↓ 1 callers
Method
split_contents
(self)
compressor/js.py:9
↓ 1 callers
Method
test_css_absolute_filter
(self)
compressor/tests/test_filters.py:299
↓ 1 callers
Method
walk_nodes
(self, node, original=None, context=None)
compressor/offline/django.py:152
↓ 1 callers
Function
write_offline_manifest
(manifest)
compressor/cache.py:91
Method
JINJA2_GET_ENVIRONMENT
()
compressor/conf.py:88
Method
__getattr__
(self, name)
compressor/parser/__init__.py:25
Method
__hash__
(self)
compressor/tests/test_offline.py:65
Method
__init__
(self, location=None, base_url=None, *args, **kwargs)
compressor/storage.py:137
Method
__init__
( self, resource_kind, content=None, output_prefix=None, context=None,
compressor/base.py:36
Method
__init__
(self, content)
compressor/parser/base.py:6
Method
__init__
(self, content)
compressor/parser/__init__.py:21
Method
__init__
(self, content)
compressor/parser/default_htmlparser.py:17
Method
__init__
(self, content)
compressor/parser/html5lib.py:10
Method
__init__
(self, content)
compressor/parser/beautifulsoup.py:8
Method
__init__
(self, content)
compressor/parser/lxml.py:15
Method
__init__
(self, nodelist, kind=None, mode=OUTPUT_FILE, name=None)
compressor/templatetags/compress.py:139
Method
__init__
(self, rendered)
compressor/tests/test_offline.py:962
Method
__init__
(self, content, attrs, filter_type=None, filename=None, charset=None)
compressor/tests/test_base.py:36
Method
__init__
(self, content, attrs, filter_type=None, filename=None, charset=None)
compressor/tests/test_base.py:46
Method
__init__
(self, *args, **kwargs)
compressor/filters/yui.py:8
Method
__init__
(self, *args, **kwargs)
compressor/filters/base.py:87
Method
__init__
(self, content, command=None, **kwargs)
compressor/filters/base.py:137
Method
__init__
(self, mimetype, *args, **kwargs)
compressor/filters/base.py:242
Method
__init__
(self, *args, **kwargs)
compressor/filters/css_default.py:28
Method
__init__
(self, *args, **kwargs)
compressor/filters/yuglify.py:8
Method
__init__
(self, *args, **kwargs)
compressor/filters/jsmin/__init__.py:17
Method
__init__
(self, charset)
compressor/offline/django.py:102
Method
__init__
(self, charset, env)
compressor/offline/jinja2.py:66
Method
__str__
(self)
compressor/tests/test_offline.py:59
Method
__unicode__
(self)
compressor/tests/test_offline.py:62
Method
_call_compress_template
(self, nodes, parser, offline_manifest, errors)
compressor/tests/test_offline.py:995
Method
_compress_forced
(self, kind, mode, name, caller)
compressor/contrib/jinja2ext.py:79
Method
_compress_normal
(self, kind, mode, name, caller)
compressor/contrib/jinja2ext.py:82
Method
_prepare_contexts
(self, engine)
compressor/tests/test_offline.py:490
Method
_prepare_contexts
(self, engine)
compressor/tests/test_offline.py:516
Method
_render_result
(self, result, separator="\n")
compressor/tests/test_offline.py:581
Method
_setup
(self)
compressor/storage.py:129
Method
_setup
(self)
compressor/storage.py:148
Method
_setup
(self)
compressor/tests/test_storages.py:19
Method
_setup
(self)
compressor/tests/test_storages.py:26
Method
_spaceless
(self, caller)
compressor/offline/jinja2.py:41
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:369
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:422
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:556
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:607
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:654
Method
_test_offline
Test that a CommandError is raised with DEBUG being False as well as True, as otherwise errors in configuration will never show in
compressor/tests/test_offline.py:681
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:715
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:752
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:772
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:792
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:828
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:848
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:929
Method
accessed_time
(self, name)
compressor/storage.py:42
Method
add_arguments
(self, parser)
compressor/management/commands/compress.py:44
Method
add_arguments
(self, parser)
compressor/management/commands/mtime_cache.py:13
Method
assertStrippedEqual
(self, result, expected)
compressor/tests/test_jinja2ext.py:18
Method
cached_filters
(self)
compressor/base.py:226
Method
cachekey
(self)
compressor/base.py:238
Method
collapse
(s)
compressor/tests/test_base.py:172
Method
compare
()
compressor/tests/test_base.py:530
Function
compress
Data is the string from the template (the list of js files in this case) Name is either 'js' or 'css' (the sekizai namespace) Basically p
compressor/contrib/sekizai.py:17
Function
compress
Compresses linked and inline javascript or CSS into a single cached file. Syntax:: {% compress <js/css> [<file/inline> [block_name]
compressor/templatetags/compress.py:166
Method
compressors
(self)
compressor/templatetags/compress.py:28
Method
configure_cache_backend
(self, value)
compressor/conf.py:127
Method
configure_offline_context
(self, value)
compressor/conf.py:132
Method
configure_precompilers
(self, value)
compressor/conf.py:142
Method
configure_root
(self, value)
compressor/conf.py:107
Method
configure_template_filter_context
(self, value)
compressor/conf.py:137
Method
configure_url
(self, value)
compressor/conf.py:117
Method
created_time
(self, name)
compressor/storage.py:45
← previous
next →
101–200 of 454, ranked by callers