Mercurial > piecrust2
diff piecrust/plugins/builtin.py @ 196:154b8df04829
processing: Add Compass and Sass processors.
The Sass processor is similar to the Less processor, i.e. it tries to be
part of the structured pipeline processing by using the mapfile produced by
the Sass compiler in order to provide a list of dependencies.
The Compass processor is completely acting outside of the pipeline, so the
server won't know what's up to date and what's not. It's expected that the
user will run `compass watch` to keep things up to date. However, it will
require to pass the server's cache directory to put things in, so we'll need
to add some easy way to get that path for the user.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 11 Jan 2015 23:08:49 -0800 |
parents | d5b7c2a4ec9d |
children | 57eec8a67095 |
line wrap: on
line diff
--- a/piecrust/plugins/builtin.py Sun Jan 11 23:04:55 2015 -0800 +++ b/piecrust/plugins/builtin.py Sun Jan 11 23:08:49 2015 -0800 @@ -4,6 +4,8 @@ from piecrust.commands.builtin.info import ( RootCommand, ShowConfigCommand, FindCommand, ShowSourcesCommand, ShowRoutesCommand, ShowPathsCommand) +from piecrust.commands.builtin.plugins import ( + PluginsCommand) from piecrust.commands.builtin.scaffolding import ( PrepareCommand, DefaultPrepareTemplatesCommandExtension, @@ -20,8 +22,10 @@ from piecrust.importing.piecrust import PieCrust1Importer from piecrust.plugins.base import PieCrustPlugin from piecrust.processing.base import CopyFileProcessor +from piecrust.processing.compass import CompassProcessor from piecrust.processing.less import LessProcessor from piecrust.processing.requirejs import RequireJSProcessor +from piecrust.processing.sass import SassProcessor from piecrust.processing.sitemap import SitemapProcessor from piecrust.sources.base import DefaultPageSource from piecrust.sources.posts import ( @@ -52,7 +56,8 @@ ShowPathsCommand(), BakeCommand(), ShowRecordCommand(), - ServeCommand()] + ServeCommand(), + PluginsCommand()] def getCommandExtensions(self): return [ @@ -88,7 +93,9 @@ def getProcessors(self): return [ CopyFileProcessor(), + CompassProcessor(), LessProcessor(), + SassProcessor(), RequireJSProcessor(), SitemapProcessor()]