Overview 

Welcome to document coding in Athennian. We know that coding Word documents is a technical task and often confusing. We have worked to make our coding as easy and intuitive  as possible.

In this article, we fill focus on the fundamentals of document coding in Athennian such as syntax and formatting. In further articles, you can learn more advanced techniques such as repeat loops, conditional logic and filters. 

Data Variable Reference Guide

If you are looking for the Coding Reference Guide to reference fields in the Athennian, please go here: https://goo.gl/kzBEwf

Basic Syntax 

Note: As with any document assembly system, it is important to follow the syntax very carefully. 

Athennian uses moustache tags for brackets without any spaces between the characters as follows: 

{#directors} {firstName} {/}

There are two types of tag the Data Scope tag and the Data Field tag. If we take the following example, {#officers} is the Data Scope tag and {lastName} is the Data Field tag. 

{#officers} {lastName} {/} 

The Data Scope tag tells Athennian what type of data you are looking for. In the above case, we are looking for information about officers in the company. The Data Field tag tells Athennian exactly what data point about the officers we are looking for: the last name. 

Here is another example if we wanted to reference the share class for a stock certificate: 

{#certificates} {shareClass} {/}

In the Coding Reference Guide, the first two columns of tags are labelled as Data Scope Tags and Data Field Tags. The guide provides a framework for how we can combine tags to generate documents effectively. 

It is important to open each Data Scope Tags with a hashtag "#" and close each variable with the close tag "{/}". If you are running into errors with document generation, forgetting the close a variable with a close tag is most 

Font Formatting

Font formatting in Athennian is easy. If you want to make a variable all capitalized or all lower case then use the following modifier in the variable: 

{entityName | upper}
{entityName | lower}

To bold, underline, italicize or strikethrough, simply apply the formatting to the entire variable reference like this:  {address | upper}.

Comma Separated 

Computers do not use commas when expressing numbers because it is easy for them to distinguish 10000 from 100000 by counting zeros. It's harder for humans, so we have built the ability to add commas to any figure that the system requires with the syntax "commaSeperate" used like this:

{numShares | commaSeperate}

If the number of shares is ten thousand or 10000, this will return the following text into the document:

10,000
Did this answer your question?