# Embed HTML ::run test ! -d scratch ::run mkdir scratch ::sleep 1 :{write scratch/photopubrc dir scratch suffix .jpg dir scratch filename info makealbum all standard scratch/embed.thtml :} :{write scratch/info group 1-5 foo describe 1 bar :} :{write scratch/embed.thtml $rangetitle - $description :} ::makeimage 100x75 scratch/1.jpg ::makeimage 100x75 scratch/2.jpg :{init :{embedhtml photo=/1 style=/standard album=/all foo - bar Photo /1 :} :{embedhtml photo=/1 :!userinput style not given and no default defined :} :{embedhtml photo=/1 style=/standard :!userinput album must be specified for embed template /standard :} :{embedhtml photo=/6 style=/standard album=/all :!userinput photo is not listed in a range :} :} ::sleep 1 :{write scratch/embed.thtml $photo $description No description :} :{init :{embedhtml photo=/1 style=/standard /1 bar

:} :{embedhtml photo=/2 style=/standard /2 No description

:} :} ::run rm scratch/* ::run rmdir scratch