Create a hello-world content

This builds on the following intros:



Let’s create a content app for our page, that displays hello world.

To start, let’s drop a file to our desired location. From that point on, we will use the IDE. That’s the text file we have just created. Remove its contents, and change its file type to app-1, so that we can write our own application.

At this point, our content app can not run, because the .Inline method is not defined. Back to the IDE, we must put our code in a .Inline file. Note the dot. To write JavaScript code, we set its file type to sjs-3, and print hello world.

response.body('hello world')

That’s it!