diff --git a/writing_sigils.md b/writing_sigils.md index 0b9c791..6e60202 100644 --- a/writing_sigils.md +++ b/writing_sigils.md @@ -1,15 +1,15 @@ -# how to write a sigil -## requirements +# How to write a sigil +## Requirements - a text editor - a browser - some knowledge of javascript -## getting started +## Getting started Say we want to write a sigil for "https://time.is" to get the current times around the world and serve them in gemtext format. Our first step is to create the file `time.is` and place it in the `sigils` directory. -## writing the sigil +## Writing the sigil The only necessary part of any sigil is the call to `window.electron.send_gemtext()`. This function sends any data generated in the browser to the web server.