public
Description: Simple website templating system written in bash
Homepage: http://shapor.com/bashcms
Clone URL: git://github.com/shapor/bashcms.git
Shapor Naghibzadeh (author)
Mon Apr 13 00:47:10 -0700 2009
bashcms / README
100644 39 lines (31 sloc) 1.143 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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