jasy.style.process package

Submodules

jasy.style.process.Executer module

exception jasy.style.process.Executer.ExecuterError(message, node)[source]

Bases: Exception

jasy.style.process.Executer.process(tree, profile)[source]

jasy.style.process.Flatter module

jasy.style.process.Flatter.process(tree)[source]

Flattens selectors to that h1{ span{ ... is merged into h1 span{ ...

jasy.style.process.Mixins module

jasy.style.process.Mixins.isExtendCall(node)[source]
jasy.style.process.Mixins.isMixinCall(node)[source]
jasy.style.process.Mixins.processExtends(tree)[source]

Processes all requests for mixin extends.

jasy.style.process.Mixins.processMixins(tree)[source]

Processes all mixin includes inside mixins.

jasy.style.process.Mixins.processSelectors(tree)[source]

Processes all mixin includes inside selectors.

jasy.style.process.Operation module

exception jasy.style.process.Operation.OperationError(message, node)[source]

Bases: Exception

jasy.style.process.Operation.castToBool(node)[source]

Returns the boolean Python representation for the given Node.

jasy.style.process.Operation.compute(node, first=None, second=None, operator=None, session=None)[source]

Recursively processes given operation node.

Consumes optional hints for the first/second child of an operation as well as the operator itself (in cases where it could not be figured out automatically). The session is useful for supporting commands inside of operations.

Module contents