jasy.abstract package

Submodules

jasy.abstract.Resolver module

class jasy.abstract.Resolver.Resolver(profile)[source]

Bases: builtins.object

Resolves dependencies between items. This class is not type depended e.g. is used for both scripts and styles.

add(nameOrItem, prepend=False)[source]

Adds an item by its name or via the item instance

exclude(items)[source]

Excludes the given items (just a hard-exclude which is applied after calculating the current dependencies)

getIncluded()[source]

Returns a final set of classes after resolving dependencies

getRequired()[source]

Returns the user added classes - the so-called required classes.

remove(nameOrItem)[source]

Removes an item via its name or via the item instance

exception jasy.abstract.Resolver.ResolverError[source]

Bases: builtins.Exception

Error which is throws when resolving items could be be finished because of items which could not be found or are of an unexpected type.

jasy.abstract.Sorter module

class jasy.abstract.Sorter.AbstractSorter(resolver)[source]

Bases: builtins.object

Sorts a final list of items according to their requirements. This class is not type depended e.g. is used for both scripts and styles.

getSorted()[source]

Returns the sorted item list (caches result)

exception jasy.abstract.Sorter.SorterError[source]

Bases: builtins.Exception

Error which is throws when sorting could not be done because of circular dependencies.

Module contents

Table Of Contents

Previous topic

jasy package

Next topic

jasy.asset package

This Page