This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 163
Usage
mark van tilburg edited this page May 9, 2015
·
11 revisions
There are several ways Pretzel can be used, with corresponding commands
Usage: pretzel create [options]
Options:
-
--template=liquid
or--t=liquid
. Defines the template engine to use. Only liquid and razor are supported. Default: liquid. -
--source=c:\MySite
or--s=c:\MySite
. Defines the path to site directory to process. (default ./) -
--withproject
. If presents includes a layout VS Solution, to give intellisence when editing razor layout files. -
--wiki
. If presents creates a wiki instead of a blog (razor template only).
Create is for creating a site based on one of the available boilerplates. The default is the blog using liquid engine.
Usage: pretzel bake [options]
Options:
-
--template=liquid
or--t=liquid
. Defines the template engine to use. Only liquid and razor are supported. Default: liquid. -
--source=c:\MySite
or--s=c:\MySite
. Defines the path to site directory to process. (default ./) -
--destination=c:\Mystite\_processedsite
. Defines the path to the processed site directory. (default _site) -
--drafts
. Add the posts in the drafts folder. -
--cleantarget
. Deletes the target repository (_site by default).
Bake is for a once-off generation of the site.
Usage: pretzel taste [options]
Options:
-
--template=liquid
or--t=liquid
. Defines the template engine to use. Only liquid and razor are supported. Default: liquid. -
--source=c:\MySite
or--s=c:\MySite
. Defines the path to site directory to process. (default ./) -
--destination=c:\Mystite\_processedsite
. Defines the path to the processed site directory. (default _site) -
--port 5000
or--p 5000
. Sets port to custom value; Default: 8080. -
--nobrowser
. Do not launch a browser. -
--cleantarget
. Deletes the target repository (_site by default).
Taste is for testing a site locally using a browser - make a change, and Pretzel should detect the file changes and regenerate the site.
Usage: pretzel import [options]
Options:
-
--import=wordpress
or--i=wordpress
. Defines the format of the file to import. Supported values arewordpress
andblogger
. -
--file=import.xml
or--f=import.xml
. Defines the file to import. -
--source=c:\MySite
or--s=c:\MySite
. Defines the path to site directory to process. (default ./)
Import is for importing an existing blog to pretzel files.
Usage: pretzel version
Displays the current pretzel version used.
Usage: pretzel hungry
For use only when hungry.