Summary
Compiles Less CSS files to CSS stylesheets.
- Assembly
- Wyam
.Less .dll - Namespace
- Wyam
.Less - Interfaces
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Wyam.Common.Modules/IModule"
Type["Less"]
class Type type-node
Syntax
public class Less : IModule
Examples
This is a pipeline that compiles two Less CSS files, one for Bootstrap (which contains a lot of includes) and a second for custom CSS.
Pipelines.Add("Less",
ReadFiles("master.less"),
Concat(ReadFiles("bootstrap.less")),
Less(),
WriteFiles(".css")
);
Remarks
The content of the input document is compiled to CSS and the content of the output document contains the compiled CSS stylesheet.
Methods
Name | Value | Summary |
---|---|---|
Execute |
IEnumerable |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
|
WithInputPath |
Less |
Specifies a delegate that should be used to get the input path for each
input document. This allows the Sass processor to search the right
file system and paths for include files. By default, the
Wyam.Common.Meta.Keys.RelativeFilePath
metadata value is used for the input document path.
|