Mercurial > piecrust2
diff piecrust/plugins/builtin.py @ 100:69d5eecfa449
Better `prepare` command, with templates and help topics.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 13 Sep 2014 23:31:21 -0700 |
parents | fdb08d986384 |
children | 6827dcc9d3fb |
line wrap: on
line diff
--- a/piecrust/plugins/builtin.py Sat Sep 13 14:47:01 2014 -0700 +++ b/piecrust/plugins/builtin.py Sat Sep 13 23:31:21 2014 -0700 @@ -2,9 +2,12 @@ from piecrust.commands.builtin.baking import (BakeCommand, ShowRecordCommand) from piecrust.commands.builtin.info import (RootCommand, ShowConfigCommand, FindCommand, ShowRoutesCommand, ShowPathsCommand) +from piecrust.commands.builtin.scaffolding import (PrepareCommand, + DefaultPrepareTemplatesCommandExtension, + DefaultPrepareTemplatesHelpTopic) from piecrust.commands.builtin.serving import (ServeCommand) from piecrust.commands.builtin.util import (InitCommand, PurgeCommand, - PrepareCommand, ImportCommand) + ImportCommand) from piecrust.data.provider import (IteratorDataProvider, BlogDataProvider) from piecrust.formatting.markdownformatter import MarkdownFormatter from piecrust.formatting.smartypantsformatter import SmartyPantsFormatter @@ -42,7 +45,9 @@ ServeCommand()] def getCommandExtensions(self): - return [] + return [ + DefaultPrepareTemplatesCommandExtension(), + DefaultPrepareTemplatesHelpTopic()] def getSources(self): return [