examples.slw (818B)
1 ## EXAMPLES 2 3 Given the file `index.slw` in the current directory: 4 5 ``` 6 site-name: Test website 7 site-desc: My first website in slweb 8 \--- 9 \ 10 \{main} 11 \# Hello world 12 \ 13 This is an \_example_ of a statically generated HTML. 14 \ 15 \{/main} 16 ``` 17 18 after using the command: 19 20 ``` 21 $ slweb index.slw > index.html 22 ``` 23 24 file `index.html` contains: 25 26 ``` 27 <!DOCTYPE html> 28 <html lang="en"> 29 <head> 30 <title>Test website</title> 31 <meta charset="utf8" /> 32 <meta name="viewport" content="width=device-width, initial-scale=1" /> 33 <meta name="generator" content="slweb" /> 34 </head> 35 <body> 36 \ 37 <main> 38 <h1>Hello world</h1> 39 \ 40 <p>This is an <em>example</em> of a statically generated HTML.</p> 41 \ 42 </main> 43 </body> 44 </html> 45 ```