-
Notifications
You must be signed in to change notification settings - Fork 1
Tutorial (Windows)
#Using owl
owl is currently in an early development stage, so we don't really recommend using it.
But if you want to use it anyway, here is how you do it.
##The basics
Let's create an example file, which we'll be using in this little tutorial.
You can do this either in the command line:
type NUL > index.owl
or by simply right-clicking anywhere in a directory and creating a new text document.
Now, open the file in your favorite text editor and paste the following text into it:
head {
title { "My awesome owl page" }
meta (author = "Your name here");
}
document {
h1 { "Hello, World!" }
p { "Hello from owl :)" }
}
Nice! Let's compile our fancy example!
Shift+Right-click anywhere in the directory and choose "Open command window here" to open the command prompt.
Now type the following into your command prompt:
owl -w -i index.owl
The -w switch is required on Windows.
owl uses linux-style line endings (\n) by default, and some windows tools like notepad don't handle the line breaks correctly then.
The -w switch causes owl to use windows-style line endings (\r\n), so that your html file will be correctly displayed by notepad.
If you did everything right, owl will create the page "index.html" for you, which should look like that:
<!DOCTYPE html>
<html>
<head>
<title>My awesome owl page</title>
<meta author="Your name here">
</head>
<body>
<h1>Hello, World!</h1>
<p>Hello from owl :)</p>
</body>
</html>
Nice! You successfully created your first owl website :)