Stilus

This part of the documentation covers the Stilus binary.

The main function

stilus.cli.stilus(*args, **kwargs)

Some helper functions

stilus.cli.prepare_watch(path: pathlib.Path, include: Optional[List[pathlib.Path]] = None, compress: bool = False, prefix: str = None, ha: bool = False) → List[pathlib.Path][source]

Compile all Stylus files in the given path and recompile automatically when these files change.

Parameters:
  • path (Path) – A path.
  • includes (list, optional) – List of directories to include.
  • compress (bool, optional) – Compress the output? False by default.
  • prefix (Str, optional) – Prefix to add to each css class.
  • ha (bool, optional) – Hoist atrules? False by default.
Returns:

List of paths that are present in the given Path

Return type:

List[Path]

stilus.cli.print_version(ctx, param, value)[source]

Print the version of Stilus and end the process.

Parameters:
  • ctx – The click context.
  • param – A parameter.
  • value – A value