Documentation

App Properties

App

An app represents a modern ebook or even a mobile app.
An app in our case consists of several pages where the user can navigate from one to another.
The navigation between these pages can be done by clicking a button or a link.
An app can be installed on Android today and maybe later on iOS as well. An app consists not only on text and images, it can also host videos, interactive 3D objects, buttons and sound.

Later we can add other elements based on user requests as well. The screen is the limit. In other words, "We can display all pixels that you can imagine".

Creation

In order to create such an app you can create a new project and check the app option. Then all necesarry files and folders will be created for you.

If you already have created a project without choosing the app option you can do the following. Find the project folder on your harddrive. Add the folder pages inside this folder and add the file app.sml into the root folder of the project.

In the pages folder add a file with the name home.sml. This will be your first page. In the home.sml add content like

Page {
  padding: "8"

  Text {
    text: "Hello world!"
  }  
}

The content of the app.sml will look as follows.

App {
  name: "MyApp"
  icon: "icon.png"
  id: "com.example.myapp"
  smlVersion: "1.1"

}

App

Property Description Default
smlVersion This is the version the programm is using internally. This used to be able to read files from older versions also. In this case 1.1 is used which means the grammar is at version 1 and 1.1
name The name or title of the app or book.
id Is is a unique identifier the mobile app. Sample: com.example.myapp
icon The icon of the app for the mobile desktop and the splash screen. icon.png