# album/range/embed HTML - parameters
::run test ! -d scratch
::run mkdir scratch
::sleep 1
:{write scratch/photopubrc
dir scratch
suffix .jpg
dir scratch
filename info
makealbum all
standard scratch/album.thtml
down scratch/downwards.thtml
standard scratch/embed.thtml
:}
:{write scratch/info
group 1-5 foo
group 6-10 bar
describe 1 splat
describe 2 ugh
:}
::makeimage 100x75 scratch/1.jpg
::makeimage 100x75 scratch/2.jpg
:{write scratch/album.thtml
$splat
next
:}
:{write scratch/downwards.thtml
$splat
next
:}
:{write scratch/embed.thtml
$splat
:}
:{init
:{albumhtml album=/all style=/standard
whee
whee
:}
:{albumhtml album=/all style=/standard splat=blat
blat
blat
:}
:{albumhtml album=/all style=/standard limit=1
whee
next
:}
:{rangehtml range=/1-5 style=/down
whee
whee
:}
:{rangehtml range=/1-5 style=/down splat=blat
blat
blat
:}
:{rangehtml range=/1-5 style=/down limit=1
whee
next
:}
:{embedhtml photo=/1 style=/standard
whee
:}
:{embedhtml photo=/1 style=/standard splat=blat
blat
:}
:}
::run rm scratch/*
::run rmdir scratch