fanstic包的bob先生模板
bobtemplates.fanstatic的Python项目详细描述
简介
bobtemplates.fanstatic提供要生成的mr.bob模板 用于Fanstatic的包。
可用的模板有:
- ^{tt2}$: a simple template for a Fanstatic package.
全局设置
每个模板都使用一些变量。这些应该添加到 bob先生在~/.mrbob中的用户配置,例如:
[variables] author.name = Nuno Teixeira author.email = teixas@gmail.com author.github.user = teixas
创建fanstatic包
要创建fanstic包,请运行:
mrbob -O js.some_library bobtemplates.fanstatic:package
并回答问题:
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 wrapped library: some_library --> Version of the wrapped library: 1.4.4 --> URL of the wrapped library: http://some_library.com
然后您可以添加资源文件:
cd js.some_library/js/some_library/resources
在初始化中注册它们。py:
cd .. <editor> __init__.py
运行测试:
python bootstrap.py buildout py.test js
更改日志
0.1-1-2013-03-01
- 固定包装。
0.1-2013年2月28日
- 第一次释放。