Mercurial > piecrust2
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 99:8703be118430 | 100:69d5eecfa449 |
|---|---|
| 1 from piecrust.commands.base import HelpCommand | 1 from piecrust.commands.base import HelpCommand |
| 2 from piecrust.commands.builtin.baking import (BakeCommand, ShowRecordCommand) | 2 from piecrust.commands.builtin.baking import (BakeCommand, ShowRecordCommand) |
| 3 from piecrust.commands.builtin.info import (RootCommand, ShowConfigCommand, | 3 from piecrust.commands.builtin.info import (RootCommand, ShowConfigCommand, |
| 4 FindCommand, ShowRoutesCommand, ShowPathsCommand) | 4 FindCommand, ShowRoutesCommand, ShowPathsCommand) |
| 5 from piecrust.commands.builtin.scaffolding import (PrepareCommand, | |
| 6 DefaultPrepareTemplatesCommandExtension, | |
| 7 DefaultPrepareTemplatesHelpTopic) | |
| 5 from piecrust.commands.builtin.serving import (ServeCommand) | 8 from piecrust.commands.builtin.serving import (ServeCommand) |
| 6 from piecrust.commands.builtin.util import (InitCommand, PurgeCommand, | 9 from piecrust.commands.builtin.util import (InitCommand, PurgeCommand, |
| 7 PrepareCommand, ImportCommand) | 10 ImportCommand) |
| 8 from piecrust.data.provider import (IteratorDataProvider, BlogDataProvider) | 11 from piecrust.data.provider import (IteratorDataProvider, BlogDataProvider) |
| 9 from piecrust.formatting.markdownformatter import MarkdownFormatter | 12 from piecrust.formatting.markdownformatter import MarkdownFormatter |
| 10 from piecrust.formatting.smartypantsformatter import SmartyPantsFormatter | 13 from piecrust.formatting.smartypantsformatter import SmartyPantsFormatter |
| 11 from piecrust.importing.jekyll import JekyllImporter | 14 from piecrust.importing.jekyll import JekyllImporter |
| 12 from piecrust.importing.piecrust import PieCrust1Importer | 15 from piecrust.importing.piecrust import PieCrust1Importer |
| 40 BakeCommand(), | 43 BakeCommand(), |
| 41 ShowRecordCommand(), | 44 ShowRecordCommand(), |
| 42 ServeCommand()] | 45 ServeCommand()] |
| 43 | 46 |
| 44 def getCommandExtensions(self): | 47 def getCommandExtensions(self): |
| 45 return [] | 48 return [ |
| 49 DefaultPrepareTemplatesCommandExtension(), | |
| 50 DefaultPrepareTemplatesHelpTopic()] | |
| 46 | 51 |
| 47 def getSources(self): | 52 def getSources(self): |
| 48 return [ | 53 return [ |
| 49 DefaultPageSource, | 54 DefaultPageSource, |
| 50 FlatPostsSource, | 55 FlatPostsSource, |
