static module - blockpress/blockpress.me GitHub Wiki
The static
module is a very simple form of Content module. It will load html
content from the content
folder into the html element with the id contentArea.
{"label": "Home", "type": "static", "args": "home.html"},
{"label": "Page 1", "type": "static", "args": "pages/page001.html"},
It takes a single string as its args
value, which constitutes a path to the content it will load. This path starts from the content
folder as its root, but further subfolders in the content folder will also work. Avoid using the default
subfolder as this is where BlockPress keeps system message content, such as error messages and the original welcome message.
Whilst these content files usually have the .html
extension, they are not in and of themselves full html documents. They only need to define the html elements that will appear inside the contentArea.
content/home.html
<h1>Example Home Page Content</h1>
<p>This is a paragraph in the example home page content.</p>
<p>This is another paragraph.</p>