Mercurial > piecrust2
comparison piecrust/processing/base.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 | 308d5180bf81 |
children | 0c9de41689bb |
comparison
equal
deleted
inserted
replaced
195:b4724e577a8c | 196:154b8df04829 |
---|---|
132 '.git*', '.hg*', '.svn'] | 132 '.git*', '.hg*', '.svn'] |
133 | 133 |
134 self.skip_patterns = make_re(self.skip_patterns) | 134 self.skip_patterns = make_re(self.skip_patterns) |
135 self.force_patterns = make_re(self.force_patterns) | 135 self.force_patterns = make_re(self.force_patterns) |
136 | 136 |
137 def addSkipPatterns(self, patterns): | |
138 self.skip_patterns += make_re(patterns) | |
139 | |
137 def filterProcessors(self, authorized_names): | 140 def filterProcessors(self, authorized_names): |
138 self.processors = list(filter( | 141 self.processors = list(filter( |
139 lambda p: p.PROCESSOR_NAME in authorized_names, | 142 lambda p: p.PROCESSOR_NAME in authorized_names, |
140 self.processors)) | 143 self.processors)) |
141 | 144 |