[% THROW examples 'library is not defined' UNLESS library ; THROW examples 'section is not defined' UNLESS section ; DEFAULT count = 0 from = 1 to = count; SET dir = "examples/$library.name/$section" ; %] [% FOREACH n = [ from..to ]; WRAPPER html/row; PROCESS example/source file="$dir/$n"; END; WRAPPER html/row; INCLUDE example/output indent=1; END; INCLUDE example/break colspan=2 UNLESS loop.last; END %]