以编程方式创建json文件的zc.buildout配方
nti.recipes.json的Python项目详细描述
nti.recipes.json
这是一个zc.buildoutrecipe,它以编程方式创建json文件
让我们看一个使用构建部分的示例:
[nodeserver-env] recipe = nti.recipes.json output-file = /home/user/etc/nodeserver-env.json contents-section = nodeserver-env-root [nodeserver-env-root] stripe-section = nodeserver-stripe jquery-payment-section = nodeserver-jquery.payment [nodeserver-jquery.payment] requires = jquery stripe **end-list** url = https://my.server.com/libs/jquery.payment/1.3.2/jquery.payment.min.js definesSymbol = jQuery.payment [nodeserver-stripe] url = https://js.stripe.com/v2/ definesSymbol = Stripe
/home/user/etc/nodeserver-env.json的输出为:
{ "jquery-payment": { "definesSymbol": "jQuery.payment", "requires": [ "jquery", "stripe" ], "url": "https://my.server.com/libs/jquery.payment/1.3.2/jquery.payment.min.js" }, "stripe": { "definesSymbol": "Stripe", "url": "https://js.stripe.com/v2/" } }
更改
1.0.0(2018-02-19)
- 第一个pypi版本。