Skip to content

Instantly share code, notes, and snippets.

@kkajita
Created July 19, 2013 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkajita/6036888 to your computer and use it in GitHub Desktop.
Save kkajita/6036888 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# coding: utf-8
import field.reports
param = {
"template": "./recipe.pdf",
"context": {
"title": {"value": u"たらのムニエルきのこクリームソース", "color": [204, 102, 51]},
"heading": u"表面はカリッと、中はふわふわに仕上げた淡白なたらに、\nしめじの旨味を閉じ込めたクリームソースが絶妙に絡みます。",
"photo": {"icon": "./recipe_photo.jpg"},
"time": u"15分",
"cal": 310,
"num": "2",
"material": [
[u"たら(切身)", u"2枚"],
[u"しめじ", u"1パック"],
[u"小麦粉(強力粉)", u"適量"],
[u"生クリーム", u"50cc"],
[u"卵黄", u"1個"],
[u"バター", "20g"],
[u"塩", u"適量"],
[u"白ワイン", u"大さじ2"],
[u"チャービル", u"適量"]
],
"procedure": [
u"(1)たらの表面に塩をふり、小麦粉(強力粉)をまぶし、バター50gを入れフライパンで、皮の方から焼く。",
u"(2)焼き上がったら皿に写し、フライパンの余分な油をとる。",
u"(3)残りのバター・白ワイン・しめじを炒め、生クリーム・卵黄を加え軽く火を通す。",
u"(4)(2)に(3)をかけ、チャービルを飾る。"
],
"tips": u"昔、風車を回して小麦粉を作っている人をフランス語で「ムニエ」と呼んでいました。小麦粉を使った料理「ムニエル」は、この「ムニエ」が由来しているそうです。"
}
}
field.reports.render(param, "menuiere.pdf")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment