静态网站生成工具
项目描述
Landspout是一个静态网站生成工具,使用Tornado模板。创建您的模板结构和内容,并将landspout指向它。
Landspout有三种操作模式
单次运行构建网站
监视源或模板目录中的更改,并在更改时渲染
在监视更改并渲染它们的同时运行HTTP服务器
用法
请参阅示例目录以获取模板和内容用法示例。
usage: Static website generation tool
positional arguments:
{build,watch,serve} The command to run (default: build)
optional arguments:
-h, --help show this help message and exit
-s SOURCE, --source SOURCE
Source content directory (default: content)
-d DEST, --destination DEST
Destination directory for built content (default:
build)
-t TEMPLATE DIR, --templates TEMPLATE DIR
Template directory (default: templates)
-b BASE_URI_PATH, --base-uri-path BASE_URI_PATH
--whitespace {all,single,oneline}
Compress whitespace (default: all)
-n NAMESPACE, --namespace NAMESPACE
Load a JSON file of values to inject into the default
rendering namespace. (default: None)
-i INTERVAL, --interval INTERVAL
Interval in seconds between file checks while watching
or serving (default: 3)
--port PORT The port to listen on when serving (default: 8080)
--debug Extra verbose debug logging (default: False)
-v, --version output version information, then exit