Skip to content

Commit db0c0d3

Browse files
committed
how it works
1 parent 5521619 commit db0c0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/md/howitworks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is a description of the interaction between the ~ec~ and the Markdown scrip
44

55
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 ~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.
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 page it controls. 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

99
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

0 commit comments

Comments
 (0)