Sass

The dependencies necessary for this plugin can be installed using the sass extra.

class pysmith.contrib.web.sass.Sass(*, match_pattern='.*\\.(sass|scss)', output_extension='.css', compile_args={})[source]

Compiles sass/scss into css. The file’s contents will be updated and the file will be renamed if necessary based on the output extension.

Parameters
  • match_pattern (str) – A regex pattern to specify which files to compile.

  • output_extension (str) – The extension the file should have after compilation.

  • compile_args (dict(str, object)) – Extra arguments to be passed to sass.compile() in addition to the file contents.