shapor / bashcms

Simple website templating system written in bash

Home Page:http://shapor.com/bashcms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bashcms
-------

Version: 0.1
Author: Shapor Naghibzadeh

bashcms was originally written to generate the html for the http://tux3.org
website.  It uses html stub file and a some simple metadata file, which are
included as an example.

The html used for the templates is from the following css tab example:
http://labs.silverorange.com/images/tabsupdate/index.html

Simply running "make" will generate html files.
Pages to generate are listed in .templates/order
Their metadata is store in directories:
$ cat .templates/order
index about
$ tree -a index about
index
|-- .index.html
`-- .name
about
`-- .index.html

Template files:
order: (one line) the list of files to generate, in the order they will be displayed
header.html: Top of all the html files, followed by the generated menu
middle.html: displayed between the menu and the .index.html content
footer.html: take a wild guess :)
title: the text to be displayed in the <title> tag in the header (default: bashcms)

Metadata files:
.name: (optional) contains the link name to be displayed in the tab header
.index.html: the content of the file to be generated

TODO:
add subtab support

About

Simple website templating system written in bash

http://shapor.com/bashcms


Languages

Language:C 94.5%Language:Shell 5.5%