

You can then place the layout in your document by referencing its name. "A layout combines components into a reusable template and gives it a name. By design, APL provides a set of native APL components, these include: Text, Image, Container, ScrollView and a few others, we will go into more detail later. In the end, we can apply this description 1:1 to our APL component. Web components are a set of functions that provide a standard component model for the web and allow encapsulation and interoperability of individual HTML elements. We could compare an APL component to a web component. Components are the basic building blocks for constructing a document." "An APL component is a primitive UI element that displays on the viewport, such as a simple text box. Let's look at the individual parts in detail. "An APL document combines multiple parts". So we can say an APL document is like an HTML document, and the Alexa Presentation Language is like the Hypertext Markup Language a markup language that is used to structure electronic documents that include texts, images, and other content.įurthermore, the official documentation says: The document controls the overall structure and layout of the visual response." "An APL document is a JSON structure that defines a template to display on the viewport. So, if there is an APL document parser, there must be an APL document - so what exactly is an APL document? The official APL documentation describes the APL document like this: One part is the APL document parsing.īy the way, the source code of APL is available on Github. Before we start, what is APL? APL is the abbreviation of Alexa Presentation Language and at its core it consists of several parts.
