{{$Top := .}} {{$Root := .Root}} {{$Query := .Query}} {{$Session := .Session}} {{$TemplateData := .TemplateData}} {{$Body := $TemplateData.Body}} {{$Head := $TemplateData.Head}} {{$Stack := $TemplateData.Stack}} {{$Messages := $TemplateData.Messages}} {{$Links := $Body.Links}} {{if or (KeyExists $Root.Query.rss) (KeyExists $Root.Query.atom) (KeyExists $Root.Query.pdf) (KeyExists $Root.Query.svg) (And (Equals $Root.StdTokenAuthenticated true) (KeyExists $Root.Query.layout))}} {{if KeyExists $Root.Query.svg}} {{template "index.tmpl.svg" .}} {{end}} {{if KeyExists $Root.Query.layout}} {{template "index.tmpl.layout" .}} {{end}} {{if KeyExists $Root.Query.pdf}} {{template "index.tmpl.pdf.xml" .}} {{end}} {{if KeyExists $Root.Query.rss}} {{template "index.tmpl.rss" .}} {{end}} {{if KeyExists $Root.Query.atom}} {{template "index.tmpl.atom" .}} {{end}} {{else}}