Skip to content

Commit 5521619

Browse files
committed
Doc
1 parent 1e332c9 commit 5521619

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resources/md/howitworks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
This is a description of the interaction between the ~ec~ and the Markdown scripts to power this website. You should be able to follow the flow as I name the files involved.
44

5-
Before I start I should explain that ~ec~ uses the ~code:Showdown~ Markdown library to add custom features to the regular `Markdown` set. I may refer to ~code:Showdown~ and `Markdown` interchangeably.
5+
Before I start I should explain that ~ec~ uses the ~code:Showdown~ Markdown library to add custom features to the regular ~code:Markdown~ set. I may refer to ~code:Showdown~ and ~code:Markdown~ interchangeably.
66

7-
In `index.html` the boot script loads and runs `main.ecs`, whose main role is to control the menu panel on the home page. It sets up button variables and module handlers, each of which is initialized with a script for the functions it performs. Not all of the module handlers have a corresponding button; some are called from regular hyperlinks in the text. The code loads the script for each module then runs it, which initializes the module then waits for a message.
7+
In ~code:index.html~ the boot script loads and runs ~code:main.ecs~, whose main role is to control the menu panel on the home page. It sets up button variables and module handlers, each of which is initialized with a script for the functions it performs. Not all of the module handlers have a corresponding button; some are called from regular hyperlinks in the text. The code loads the script for each module then runs it, which initializes the module then waits for a message.
88

9-
Let's start with one of the simplest possible cases, where the user clicks the `Wordpress` button. This will cause a message to be sent to the `wordpress.ecs` module. The module only ever expects to receive one kind of message, so the content is empty. The module will already have loaded the `wordpress.md` Markdown file, so all it needs to do on receiving the message is to call the ~code:Showdown~ module, passing it the page script. This is formatted by ~code:Showdown~ and placed in the main viewing panel.
9+
Let's start with one of the simplest possible cases, where the user clicks the ~code:Wordpress~ button. This will cause a message to be sent to the ~code:wordpress.ecs~ module. The module only ever expects to receive one kind of message, so the content is empty. The module will already have loaded the ~code:wordpress.md~ Markdown file, so all it needs to do on receiving the message is to call the ~code:Showdown~ module, passing it the page script. This is formatted by ~code:Showdown~ and placed in the main viewing panel.
1010

1111
Interactions between the ~ec~ and ~code:Showdown~ scripts occur in 2 ways:
1212

13-
1 `Markdown`/~code:Showdown~ can include HTML sections according to your needs. If a hyperlink element with an id is placed in the `.md` script, ~ec~ can attach one of its own variables to the hyperlink and detect when it is clicked.
13+
1 ~code:Markdown~/~code:Showdown~ can include HTML sections according to your needs. If a hyperlink element with an id is placed in a ~code:.md~ script, ~ec~ can attach one of its own variables to the hyperlink and detect when it is clicked.
1414

1515
1 In the same way, any element with an id can have its content altered at will by ~ec~. This allows the page to change dynamically under script control.
1616

0 commit comments

Comments
 (0)