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
↓ 25 callers
Method
render
(self, context, forced=False)
compressor/templatetags/compress.py:148
↓ 23 callers
Function
render
A shortcut for testing template output.
compressor/tests/test_templatetags.py:14
↓ 22 callers
Method
output
(self, **kwargs)
compressor/filters/base.py:66
↓ 16 callers
Function
blankdict
(*args, **kwargs)
compressor/tests/test_filters.py:25
↓ 14 callers
Method
handle_inner
(self, **options)
compressor/management/commands/compress.py:383
↓ 13 callers
Method
_render_script
(self, hash)
compressor/tests/test_offline.py:195
↓ 13 callers
Method
exists
(self, name)
compressor/tests/test_storages.py:37
↓ 13 callers
Method
input
(self, **kwargs)
compressor/tests/test_base.py:39
↓ 12 callers
Method
replace
Override ``.replace()`` to make it work with ``{% static %}``. In ``django.core.files.storage``, ``FileSystemStorage.url()`` passes t
compressor/tests/test_offline.py:80
↓ 11 callers
Method
input
(self, **kwargs)
compressor/filters/base.py:246
↓ 10 callers
Method
_render_result
(self, result, separator="\n")
compressor/tests/test_offline.py:208
↓ 10 callers
Method
_render_template
(self, engine)
compressor/tests/test_offline.py:187
↓ 10 callers
Function
css_tag
(href, **kwargs)
compressor/tests/test_base.py:27
↓ 10 callers
Method
elem_str
Return the string representation of the given elem
compressor/parser/base.py:39
↓ 10 callers
Method
split
Override ``.split()`` method to make it work with ``{% static %}``.
compressor/tests/test_offline.py:74
↓ 9 callers
Method
hunks
The heart of content parsing, iterates over the list of split contents and looks at its kind to decide what to do with it. Sh
compressor/base.py:243
↓ 9 callers
Method
path
(self, name)
compressor/tests/test_storages.py:40
↓ 9 callers
Method
save
(self, filename, content)
compressor/storage.py:51
↓ 9 callers
Function
script
returns a unicode text html script element. >>> script('#this is a comment', scripttype="text/applescript") '<script type="text/applescr
compressor/tests/test_templatetags.py:307
↓ 8 callers
Method
helper
(self, enabled, use_precompiler, use_absolute_filter, expected_output)
compressor/tests/test_base.py:69
↓ 8 callers
Method
split_contents
To be implemented in a subclass, should return an iterable with four values: kind, value, basename, element
compressor/base.py:85
↓ 7 callers
Method
input
(self, **kwargs)
compressor/filters/base.py:160
↓ 7 callers
Method
output
(self, *args, **kwargs)
compressor/css.py:43
↓ 6 callers
Method
_test_offline
(self, engine, verbosity=0)
compressor/tests/test_offline.py:213
↓ 6 callers
Method
elem_attribs
Return the dictionary like attribute store of the given element
compressor/parser/base.py:21
↓ 6 callers
Function
get_cachekey
(*args, **kwargs)
compressor/cache.py:35
↓ 6 callers
Function
get_hexdigest
(plaintext, length=None)
compressor/cache.py:20
↓ 6 callers
Function
get_mod_func
Converts 'django.views.news.stories.story_detail' to ('django.views.news.stories', 'story_detail')
compressor/utils/__init__.py:28
↓ 6 callers
Function
get_offline_manifest
()
compressor/cache.py:74
↓ 6 callers
Function
make_soup
(markup)
compressor/tests/test_base.py:23
↓ 5 callers
Function
get_class
Convert a string version of a function name to the callable object.
compressor/utils/__init__.py:6
↓ 5 callers
Method
handle
(self, **options)
compressor/management/commands/compress.py:380
↓ 4 callers
Method
get_basename
Takes full path to a static file (eg. "/static/css/style.css") and returns path with storage's base url removed (eg. "css/style.css")
compressor/base.py:104
↓ 3 callers
Method
__init__
( self, content, attrs=None, filter_type=None, filename=None,
compressor/filters/base.py:46
↓ 3 callers
Method
_build_expected_manifest
(self, expected)
compressor/tests/test_offline.py:851
↓ 3 callers
Function
const
(node)
compressor/contrib/jinja2ext.py:9
↓ 3 callers
Method
copy
(self, **kwargs)
compressor/base.py:69
↓ 3 callers
Method
filter
(self, content, filters, method, **kwargs)
compressor/base.py:349
↓ 3 callers
Function
flush_offline_manifest
()
compressor/cache.py:86
↓ 3 callers
Method
get_filename
Returns full path to a file, for example: get_filename('css/one.css') -> '/full/path/to/static/css/one.css'
compressor/base.py:149
↓ 3 callers
Method
get_loaders
(self)
compressor/management/commands/compress.py:83
↓ 3 callers
Function
get_mtime
(filename)
compressor/cache.py:103
↓ 3 callers
Function
get_offline_hexdigest
(render_template_string)
compressor/cache.py:53
↓ 3 callers
Method
get_original_content
(self, context)
compressor/templatetags/compress.py:24
↓ 3 callers
Method
get_original_content
(self, context)
compressor/templatetags/compress.py:145
↓ 2 callers
Method
_assert_concurrency
(self, nodes_1, nodes_2, expected_max_active)
compressor/tests/test_offline.py:1004
↓ 2 callers
Method
_compress
(self, kind, mode, name, caller, forced)
compressor/contrib/jinja2ext.py:85
↓ 2 callers
Method
_converter
(self, url)
compressor/filters/css_default.py:100
↓ 2 callers
Method
_find
(self, *names)
compressor/parser/html5lib.py:24
↓ 2 callers
Method
_make_parser
(self, active, max_active, active_lock)
compressor/tests/test_offline.py:965
↓ 2 callers
Method
_render_link
(self, hash)
compressor/tests/test_offline.py:200
↓ 2 callers
Method
_render_nodes
(self, template, context, nodes)
compressor/offline/jinja2.py:98
↓ 2 callers
Method
add_suffix
(self, url)
compressor/filters/css_default.py:70
↓ 2 callers
Method
assertEqualCollapsed
assertEqual with internal newlines collapsed to single, and trailing whitespace removed.
compressor/tests/test_base.py:166
↓ 2 callers
Method
assertEqualSplits
assertEqual for splits, particularly ignoring the presence of a trailing newline on the content.
compressor/tests/test_base.py:177
↓ 2 callers
Function
cache_set
(key, val, refreshed=False, timeout=None)
compressor/cache.py:153
↓ 2 callers
Method
css_elems
Return an iterable containing the css elements to handle
compressor/parser/base.py:9
↓ 2 callers
Method
default_ignore
(self)
compressor/tests/test_mtime_cache.py:20
↓ 2 callers
Method
elem_content
Return the content of the given element
compressor/parser/base.py:27
↓ 2 callers
Method
elem_name
Return the name of the given element
compressor/parser/base.py:33
↓ 2 callers
Function
flatten_context
(context)
compressor/offline/jinja2.py:12
↓ 2 callers
Function
get_apps_without_staticfiles
(apps)
compressor/tests/test_utils.py:14
↓ 2 callers
Method
get_cache_key
(self)
compressor/filters/base.py:258
↓ 2 callers
Function
get_hashed_mtime
(filename, length=12)
compressor/cache.py:114
↓ 2 callers
Function
get_mtime_cachekey
(filename)
compressor/cache.py:49
↓ 2 callers
Function
get_precompiler_cachekey
(command, contents)
compressor/cache.py:134
↓ 2 callers
Function
get_storage
(alias=None, storage_class=None)
compressor/storage.py:13
↓ 2 callers
Method
guess_filename
(self, url)
compressor/filters/css_default.py:52
↓ 2 callers
Method
handle_output
(self, mode, content, forced, basename=None)
compressor/base.py:378
↓ 2 callers
Method
input
(self, **kwargs)
compressor/filters/base.py:63
↓ 2 callers
Method
is_ignored
Return True or False depending on whether the ``path`` should be ignored (if it matches any pattern in ``ignore_patterns``).
compressor/management/commands/mtime_cache.py:48
↓ 2 callers
Method
is_offline_compression_enabled
Check if offline compression is enabled or forced Defaults to just checking the settings and forced argument, but can be ove
compressor/templatetags/compress.py:56
↓ 2 callers
Method
js_elems
Return an iterable containing the js elements to handle
compressor/parser/base.py:15
↓ 2 callers
Method
lstrip
Override ``.lstrip()`` method to make it work with ``{% static %}``.
compressor/tests/test_offline.py:68
↓ 2 callers
Function
offline_context_generator
()
compressor/tests/test_offline.py:29
↓ 2 callers
Method
parse
(self, template_name)
compressor/offline/django.py:105
↓ 2 callers
Function
remove_block_nodes
(nodelist, block_stack, block_context)
compressor/offline/django.py:51
↓ 2 callers
Method
render_compressed
( self, context, kind, mode, name=None, forced=False, log=None, verbosity=0 )
compressor/templatetags/compress.py:100
↓ 2 callers
Method
render_output
Renders the compressor output with the appropriate template for the given mode and template context.
compressor/base.py:411
↓ 2 callers
Method
setup_infile
(self, filename="static/css/one.css")
compressor/tests/test_filters.py:43
↓ 2 callers
Function
shell_quote
(s)
compressor/filters/base.py:13
↓ 1 callers
Method
__get_parser
(self, engine)
compressor/management/commands/compress.py:110
↓ 1 callers
Method
__init__
(self, location=None, base_url=None, *args, **kwargs)
compressor/storage.py:35
↓ 1 callers
Method
_compress_template
(offline_manifest, nodes, parser, template, errors)
compressor/management/commands/compress.py:312
↓ 1 callers
Method
_get_jinja2_env
(self)
compressor/tests/test_offline.py:255
↓ 1 callers
Method
_get_jinja2_loader
(self)
compressor/tests/test_offline.py:272
↓ 1 callers
Method
_prepare_contexts
(self, engine)
compressor/tests/test_offline.py:177
↓ 1 callers
Method
_render_template
(self, template, engine)
compressor/tests/test_offline.py:744
↓ 1 callers
Method
_serialize
(self, elem)
compressor/parser/html5lib.py:16
↓ 1 callers
Method
_setup
(self, content)
compressor/parser/__init__.py:28
↓ 1 callers
Method
_test_deleting_manifest_does_not_affect_rendering
(self, engine)
compressor/tests/test_offline.py:322
↓ 1 callers
Function
cache_get
(key)
compressor/cache.py:140
↓ 1 callers
Method
compress
Searches templates containing 'compress' nodes and compresses them "offline" -- outside of the request/response cycle. The r
compressor/management/commands/compress.py:128
↓ 1 callers
Method
compressor_cls
(self, kind)
compressor/templatetags/compress.py:31
↓ 1 callers
Function
create_conf
(**attrs)
compressor/tests/test_conf.py:14
↓ 1 callers
Method
debug_mode
(self, context)
compressor/templatetags/compress.py:49
↓ 1 callers
Function
expand_blocknode
(node, block_stack, block_context)
compressor/offline/django.py:89
↓ 1 callers
Method
filter_input
Passes each hunk (file or code) to the 'input' methods of the compressor filters.
compressor/base.py:288
↓ 1 callers
Method
filter_input
Passes each hunk (file or code) to the 'input' methods of the compressor filters.
compressor/js.py:53
↓ 1 callers
Method
filter_output
Passes the concatenated content to the 'output' methods of the compressor filters.
compressor/base.py:281
next →
1–100 of 454, ranked by callers