License: Freeware $0.00 OS: Java,Linux,Mac OS X,Unix,Win2000,Win7 x32,Win7 x64,WinServer,WinVista,WinVista x Requirements: java 1.6+ Publisher: Canadian Mind Products Homepage: http://mindprod.com
a generic framework for writing static macros in java to generate elaborate boilerplate in html text files on the desktop without requiring any server side coding. it could also be used to expand macros in any text files.
the basic idea is this. you embed magic comments in your html that look like something like this (with angle brackets shown here as [].
[!– macro measure 20 cm –]
then you run htmlmacros.exe and it expands those comments to
boilerplate that looks like this:
[!– macro jdisplay measure 20 cm –]
[!– generated –]
[span class=”metric”]20 cm[/span]
[span class=”imperial”](7.87 in)[/span]
[!– /generated by measure –]
and renders colourised for your viewers like this:
20 cm (7.87 in)
some of the 100 odd macros that already exist include:
age calculate age of something in years/months/days
allposters affiliate link to allposters.com
amazon link to non-book product at amazon
art link to art.com poster
audio link to audio file
bestbrowsers describe recommended browsers
book links to sell a book at various bookstores
currcon show currency in multiple countries
dailyspecial random link to take a change page on the website changed daily.
degrees show both fahrenheit/celsius
dim metric/english width x height
dvd link to dvd stores
filesize insert the current size of a local file
foot footer with google and public service ads.
head generic header, there are also many special purpose variants.
image display an png, jpg, gif
rss generate rss feeds in html and xml
include include boilerplate, possibly containing embedded macros
j2ee macro: link to sun’s j2ee docs
jdisplay display pretty colourised code listing
…