#!/usr/bin/env python # coding: utf-8 # # Create a Template # PDF(HTML) templates are shown [here](https://github.com/iwasakishuto/Translation-Gummy/tree/master/gummy/templates). # In[1]: from gummy.utils import tohtml # In[2]: contents = [ { "en": "English", "ja": "日本語", "head": "見出し", "subhead": "小見出し" } ] # In[3]: _ = tohtml( path="example.html", title="Title", contents=contents, template="paper.html", ) # In[ ]: