Main Article

Appends an Article Instead of the Body and more

As we continuing developing our CMS we realize a limitation in the ordering of our functions. We have to order our code to append the header followed by the body content and lastly the footer. It would better if that ordering didn't matter. If it didn't matter, we would run the header and footer functions and get them out of the way. With our source code ordering that way if something goes wrong in our body code we would only have to check starting from the body content only not including the header and footer. That ordering change would be convenient.

Not just that ordering convenience there are more changes. We have a lot of unecessary code. We have functions listed beside each other that are better ordered in separate scopes. Our reference mapping from this context to others is getting confusing. And more so we will refactor our code with these epiphanies in mind.

Mission

Refactor our CMS & Namespace Systems

Full Program Map

Here is the whole program map. There is no body content yet, just the main header and footer page division.

Refactored appAx00By01Cz02{}

appAx00By01Cz02.js

Source code of the app first source file containing the full names list.

Starting The App with Data

Here is code for the starting the app feeding it data correctly. The start functions are split up in head, body , body's main, and main's header, article and footer. Notice the inheritance layer of programming for wiring shared references.

app.start()

a91_appAx00By01Cz02.start.js

Source code of the app's start up functions.

app.content()

a90_appAx00By01Cz02.content.js

Source code of the app's content in JSON format.

All files

And here are all the files

a01_appAx00By01Cz02.js

a03_appAx00By01Cz02.head.js

a05_appAx00By01Cz02.bodyMain.js

a07_appAx00By01Cz02.anchorListParagraph.js

a09_appAx00By01Cz02.mainHeader.js

a11_appAx00By01Cz02.mainFooter.js

Our template site wide header and footer code above. Our per page body code in between here. And then additional content and start up code in the files below.

a90_appAx00By01Cz02.content.js

a91_appAx00By01Cz02.start.js

Demo page

Do not click the links. Although the links are coded correctly, the actual pages they link to do not exist. So you can not yet click the links.

demo