~strahinja/slweb

slweb/examples/includes/examples.slw -rw-r--r-- 818 bytes
c810f6b8Страхиња Радић slweb.do: Adjust to the new version.h build 15 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
## EXAMPLES

Given the file `index.slw` in the current directory:

```
site-name: Test website
site-desc: My first website in slweb
\---
\
\{main}
\# Hello world
\
This is an \_example_ of a statically generated HTML.
\
\{/main}
```

after using the command:

```
$ slweb index.slw > index.html
```

file `index.html` contains:

```
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Test website</title>
    <meta charset="utf8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="generator" content="slweb" />
</head>
<body>
\
<main>
<h1>Hello world</h1>
\
<p>This is an <em>example</em> of a statically generated HTML.</p>
\
</main>
</body>
</html>
```