Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
laedit edited this page Nov 27, 2014 · 11 revisions

There are several ways Pretzel can be used, with corresponding commands

Create

Usage: pretzel create Options:

  • --template=liquid or --t=liquid. Defines the template engine to use. Only liquid and razor are supported. Default: liquid.
  • --directory=c:\MySite or --d=c:\MySite. Defines the path to site directory. Non working at the moment.
  • --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.

Bake

Usage: pretzel bake
Options:

  • --template=liquid or --t=liquid. Defines the template engine to use. Only liquid and razor are supported. Default: liquid.
  • --directory=c:\MySite or --d=c:\MySite. Defines the path to site directory. Non working at the moment.
  • --drafts. Add the posts in the drafts folder.

Bake is for a once-off generation of the site.

Taste

Usage: pretzel taste
Options:

  • --template=liquid or --t=liquid. Defines the template engine to use. Only liquid and razor are supported. Default: liquid.
  • --directory=c:\MySite or --d=c:\MySite. Defines the path to site directory. Non working at the moment.
  • --port 5000 or --p 5000. Sets port to custom value; Default: 8080.
  • --nobrowser. Do not launch a browser.

Taste is for testing a site locally using a browser - make a change, and Pretzel should detect the file changes and regenerate the site.