mr.bob模板用于Kotti开发
项目描述
简介
bobtemplates.kotti 提供了 mr.bob 模板,用于生成 Kotti CMS 的软件包
可用的模板有
theme: Kotti主题软件包的简单模板
全局设置
一些变量在每一个模板中都会使用。这些应该添加到 ~/.mrbob 中的 mr.bob 用户配置文件中,例如。
[variables] author.name = Andreas Kaiser author.email = disko@binary-punks.com author.github.user = disko
创建主题软件包
要创建Kotti主题,运行
mrbob -O kotti_theme_spacelab bobtemplates.kotti:theme
并回答问题
Welcome to mr.bob interactive mode. Before we generate directory structure, some questions need to be answered. Answer with a question mark to display help. Value in square brackets at the end of the questions present default value if there is no answer. --> Name of the package: kotti_theme_spacelab --> Version of the package [0.1]: --> License of the package [BSD]: --> Name of the theme: Spacelab --> Original URL of the wrapped theme: http://bootswatch.com/spacelab/
添加Bootstrap CSS文件
cd kotti_theme_spacelab/kotti_theme_spacelab/static/css/ wget http://bootswatch.com/spacelab/bootstrap.css
设置软件包并运行CSS/JS压缩器
cd ../../../ python setup.py develop python setup.py dev python setup.py minify
运行演示
pserve development.ini
将您的浏览器指向 http://127.0.0.1:5000 并享受您主题化的Kotti网站。
变更日志
0.1-2
简化 setup.py。
修复 setup.cfg 中的错误开发别名。
0.1-1
修复打包。
0.1
初始发布。