Mercurial > piecrust2
diff 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 |
line wrap: on
line diff
--- a/piecrust/plugins/builtin.py Tue Aug 26 23:20:19 2014 -0700 +++ b/piecrust/plugins/builtin.py Tue Aug 26 23:20:48 2014 -0700 @@ -1,11 +1,13 @@ +from piecrust.commands.base import HelpCommand from piecrust.commands.builtin.baking import (BakeCommand, ShowRecordCommand) from piecrust.commands.builtin.info import (RootCommand, ShowConfigCommand, FindCommand, ShowRoutesCommand, ShowPathsCommand) from piecrust.commands.builtin.serving import (ServeCommand) from piecrust.commands.builtin.util import (InitCommand, PurgeCommand, - PrepareCommand) + PrepareCommand, ImportCommand) from piecrust.data.provider import (IteratorDataProvider, BlogDataProvider) from piecrust.formatting.markdownformatter import MarkdownFormatter +from piecrust.importing.jekyll import JekyllImporter from piecrust.plugins.base import PieCrustPlugin from piecrust.processing.base import CopyFileProcessor from piecrust.processing.less import LessProcessor @@ -24,6 +26,8 @@ def getCommands(self): return [ InitCommand(), + ImportCommand(), + HelpCommand(), RootCommand(), PurgeCommand(), ShowConfigCommand(), @@ -64,3 +68,7 @@ LessProcessor(), SitemapProcessor()] + def getImporters(self): + return [ + JekyllImporter()] +