From c40256e86bac6a168580518ccd131b3b62b61113 Mon Sep 17 00:00:00 2001 From: sose Date: Wed, 28 Apr 2021 00:23:29 +0000 Subject: [PATCH] Update 'writing_sigils.md' --- writing_sigils.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.