Content Management

Enough with head, meta, link , body, main ... html tag markup tedium

With page counts in the dozen or so you can go thru them one by one in a few mins. But when page counts excede that, html editing can quickly become too much to handle. So much repetitive typing. It is error prone. We would benefit from a CMS.

Scripting the whole doc

Well not exactly. We will script most of the doc including the head. We will make empty html document with just a title in the head and a couple scripts in the body. The first script will be our CMS script. It will go in our src/ directory. The the second will be our CMS data and it is filed in the cnt/ directory. That cnt is short for content. The program starts with the start() command in article1.js.

cms{} src code file link

cms.js

cms{} src code screenshot

source code of cms{}

Enter your content

And here is how to use the above script. There are actually two articles in there.

article[] src code file link

article1.js

article[] src code screenshot

source code of article1{}

Demo page

demo