Mercurial > piecrust2
comparison piecrust/plugins/builtin.py @ 60:6e60e0fef2be
Add `import` command, Jekyll importer.
| author | Ludovic Chabant <ludovic@chabant.com> |
|---|---|
| date | Tue, 26 Aug 2014 23:20:48 -0700 |
| parents | bdb103c57168 |
| children | 52e4d9a1f917 |
comparison
equal
deleted
inserted
replaced
| 59:e3e3de44377c | 60:6e60e0fef2be |
|---|---|
| 1 from piecrust.commands.base import HelpCommand | |
| 1 from piecrust.commands.builtin.baking import (BakeCommand, ShowRecordCommand) | 2 from piecrust.commands.builtin.baking import (BakeCommand, ShowRecordCommand) |
| 2 from piecrust.commands.builtin.info import (RootCommand, ShowConfigCommand, | 3 from piecrust.commands.builtin.info import (RootCommand, ShowConfigCommand, |
| 3 FindCommand, ShowRoutesCommand, ShowPathsCommand) | 4 FindCommand, ShowRoutesCommand, ShowPathsCommand) |
| 4 from piecrust.commands.builtin.serving import (ServeCommand) | 5 from piecrust.commands.builtin.serving import (ServeCommand) |
| 5 from piecrust.commands.builtin.util import (InitCommand, PurgeCommand, | 6 from piecrust.commands.builtin.util import (InitCommand, PurgeCommand, |
| 6 PrepareCommand) | 7 PrepareCommand, ImportCommand) |
| 7 from piecrust.data.provider import (IteratorDataProvider, BlogDataProvider) | 8 from piecrust.data.provider import (IteratorDataProvider, BlogDataProvider) |
| 8 from piecrust.formatting.markdownformatter import MarkdownFormatter | 9 from piecrust.formatting.markdownformatter import MarkdownFormatter |
| 10 from piecrust.importing.jekyll import JekyllImporter | |
| 9 from piecrust.plugins.base import PieCrustPlugin | 11 from piecrust.plugins.base import PieCrustPlugin |
| 10 from piecrust.processing.base import CopyFileProcessor | 12 from piecrust.processing.base import CopyFileProcessor |
| 11 from piecrust.processing.less import LessProcessor | 13 from piecrust.processing.less import LessProcessor |
| 12 from piecrust.processing.sitemap import SitemapProcessor | 14 from piecrust.processing.sitemap import SitemapProcessor |
| 13 from piecrust.sources.base import DefaultPageSource | 15 from piecrust.sources.base import DefaultPageSource |
| 22 self.name = '__builtin__' | 24 self.name = '__builtin__' |
| 23 | 25 |
| 24 def getCommands(self): | 26 def getCommands(self): |
| 25 return [ | 27 return [ |
| 26 InitCommand(), | 28 InitCommand(), |
| 29 ImportCommand(), | |
| 30 HelpCommand(), | |
| 27 RootCommand(), | 31 RootCommand(), |
| 28 PurgeCommand(), | 32 PurgeCommand(), |
| 29 ShowConfigCommand(), | 33 ShowConfigCommand(), |
| 30 FindCommand(), | 34 FindCommand(), |
| 31 PrepareCommand(), | 35 PrepareCommand(), |
| 62 return [ | 66 return [ |
| 63 CopyFileProcessor(), | 67 CopyFileProcessor(), |
| 64 LessProcessor(), | 68 LessProcessor(), |
| 65 SitemapProcessor()] | 69 SitemapProcessor()] |
| 66 | 70 |
| 71 def getImporters(self): | |
| 72 return [ | |
| 73 JekyllImporter()] | |
| 74 |
