{{define "head"}}
{{end}} {{define "cache"}} {{end}} {{define "config"}} {{end}} {{define "command"}} {{end}} {{define "module"}} {{end}} {{define "domain"}} {{end}} {{define "tail"}} {{end}} {{define "main"}} {{$msg := .}} {{$meta := .Meta}} {{$sess := $msg.Sessions}} {{range .Meta.tmpl}} {{if eq . "cache"}} {{template "cache" $sess.cache.Meta}} {{else if eq . "config"}} {{template "config" $sess.config.Meta}} {{else if eq . "command"}} {{template "command" $sess.command.Meta}} {{else if eq . "module"}} {{template "module" $sess.module.Meta}} {{else if eq . "domain"}} {{template "domain" $sess.domain.Meta}} {{end}} {{end}} {{end}}