+
+ # return the contents of the top-level sub-templates
+ #
+ # this does not run the sub-templates, so if you've not called tem_sub() on them, they will be blank.
+ #
+ # Return a hash.
+ # keys: name of top level sub-template.
+ # values: contents of said sub-template.
+ function top_subs() {
+ $ret = array();
+ if(isset($this->sub_subs['top_level_subs'])) {
+ foreach($this->sub_subs['top_level_subs'] as $name) {
+ $ret[$name] = $this->get($name);
+ }
+ }
+ return $ret;
+ }