Module write_ebml

Source
Expand description

Write an EBML file using a prototype, and some basic information about a new process

Assumption: you know some basic information about a Process struct, enough to fill the basic fields:

  • Number - Document Number
  • Title - Document Title
  • Subject - To what the process applies
  • Product - Output of this process
  • Author - Who is to compose this process
  • Reviewer - Prior to publishing, who is to review

Note: these aren’t the only fields in the Process struct; these are the fields that are strictly required in a well-formatted CSV file when stanhope is invoked to read in a list of new processes to create.

An EBML prototype file is required, and should be in the “assets” folder.

Functions§

fill_in_template_ebml_file 🔒
Write a new EBML file that is line-for-line identical to a reference prototype file, except replace the file’s variables with information from the Process struct.
get_process_folder_name
Apply the Library folder naming convention introduced in stanhope 0.56.0
write_ebml
Create a new folder with the same name as the Document Number, and write a new EBML file to it.