New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Dynamic Template Grammars with Expressions #346
Comments
Handling Complex Data:Template:
For the contract data:
The text of the contract will be:
For the contract data:
Attempting to generate the text of the contract will result in an enforce error. |
Note that an approach based on expressions within templates may also cover #296 |
Implemented syntax uses: |
A syntax proposal is available at #392
It would be quite nice to provide finer grained control of the contract text by embedding logic in the template.
To illustrate some of the possible benefits/usecases, here are a few examples:
Handling Text Dependencies:
Template:
For the contract data:
The text of the contract will be:
Such dependencies can be found in legal documents such as loans or in more complex forms in e.g., interest swaps: https://www.sec.gov/Archives/edgar/data/1508478/000119312511077213/dex1021.htm
Constructing Lists (#20):
Template:
For the contract data:
The text of the contract will be:
Constructing Tables (#20):
Template:
For the contract data:
The text of the contract will be:
Handling Optional Text:
Template:
For the contract data:
The text of the contract will be:
Handling Optional Text with Parameters (#17):
Template:
For the contract data:
The text of the contract will be:
The text was updated successfully, but these errors were encountered: