Version: v0.6.1 - Beta.  We welcome contributors & feedback.  THanks!

'Hello World' (Example)


We assume you have set up the starter app.

App Structure 

Here are the key directories inside of your app directory:

- pages          Main THT entry points
- modules        Code usable in all pages
- settings       Configuration files
- data           Logs, database files, etc.

Page URLs

To create a new page, just add a .tht file to the pages directory.

Each page file automatically gets a clean lower-case URL.

Example File:                 URL:

pages/myBlog.tht         -->  /my-blog
pages/company/about.tht  -->  /company/about

Step 1: Create the Page 

Create a new file: app/pages/helloWorld.tht.

Add this line and save the file:

print('Hello World!');

Step 2: Load the Page 

Load this URL: http://localhost:8888/hello-world

Here’s what you should see:

Hello World!