templater-0.4.0


  • - **Template**: the whole object (instance of ``Templater``). - **Document**: a string or file that have some kind of pattern. You'll use documents to make a template object learn and recognize these patterns, so later you can use the template object to parse a document and get only the information that is not "static". - **Blocks**: the fixed parts of a template. Can change (in number and size) when ``learn`` is run. - **Blanks**: also called holes or variables, blanks are the parts in a template that changes between documents with the same template. - **Template definition**: the information stored in a template that defines it (it is a Python list with a very simple grammar that describes how the template is composed). - **Markers**: when you want to save a template, something should be put between blocks to "mark" the blanks (so the template definition can be reconstructed later). - **Named marker**: a marker plus a header is called a named marker. They are handy and more legible since you can access the "blanks" by names instead of indexes.