
{{ range $i, $e := $tabs }}
{{ $id := printf "%s-%d" $tab_set_id $i }}
<div id="{{ $id }}">
	{{ with .content }}
		{{ . }}
	{{ else }}
		{{ if eq $.Page.BundleType "leaf" }}
			{{/* find the file somewhere inside the bundle. Note the use of double asterisk */}}
			{{ with $.Page.Resources.GetMatch (printf "**%s*" .include)  }}
				{{ if ne .ResourceType "page" }}
				{{/* Assume it is a file that needs code highlighting. */}}
				{{ $codelang := $e.codelang | default ( path.Ext .Name | strings.TrimPrefix "