Source

pyPEG / docs / gen_contents.ysl2

Full commit
1
2
3
4
5
6
7
8
include yslt.yml2

stylesheet {
    param "file";
    template "/page" div class=contents menu apply "h2|h3";
    template "h2" li em a href="{$file}.html#{@id}" value ".";
    template "h3" li a href="{$file}.html#{@id}" value ".";
}