# Range HTML ::run test ! -d scratch ::run mkdir scratch ::sleep 1 :{write scratch/photopubrc dir scratch suffix .jpg dir scratch filename info makealbum all down scratch/downwards.thtml across scratch/across.thtml :} :{write scratch/info group 1-5 foo describe 1 bar describe 2 foo :} :{write scratch/downwards.thtml $description :} ::makeimage 100x75 scratch/1.jpg ::makeimage 100x75 scratch/2.jpg :{init :{rangehtml range=/1-5 style=/down bar foo :} :{rangehtml range=/1-5 style=/down search=foo foo :} :} ::sleep 1 :{write scratch/downwards.thtml $description prev :} :{init :{rangehtml range=/1-5 style=/down page=2 foo prev :} :} :{write scratch/across.thtml :} :{init :{rangehtml range=/1-5 style=/across Photo /1 Photo /2 :} :} ::sleep 1 :{append scratch/photopubrc templatealias / :} :{write scratch/downwards.thtml $styleroot :} :{write scratch/across.thtml $title Range $range :} :{init :{rangehtml range=/1-5 style=/test/down /test :} :{rangehtml range=/1-5 style=/across album=/all foo :} :{rangehtml range=/2-4 style=/across album=/all Range /2-4 :} :} ::sleep 1 :{write scratch/downwards.thtml $counter $photo $filesizek $picid :} :{init :{rangehtml range=/1-5 style=/down 1 /1 0 /1

2 /2 0 /2

:} :} ::sleep 1 :{write scratch/info describe 1 foo describe 2 bar describe 3 baz describe 4 quux describe 5 blat :} ::makeimage 100x75 scratch/3.jpg ::makeimage 100x75 scratch/4.jpg ::makeimage 100x75 scratch/5.jpg :{write scratch/downwards.thtml $photo first last odd :} :{init :{rangehtml range=/1-5 style=/down /1 first odd /2 /3 odd /4 /5 last odd :} :} ::sleep 1 :{write scratch/downwards.thtml [ $description ] :} :{init :{rangehtml range=/1-5 style=/down [ foo bar baz ] [ quux blat ] :} :} ::run rm scratch/* ::run rmdir scratch