[%- WRAPPER site_wrapper.html title = 'Sections' -%] [%- SET p = c.req.query_params count = 0 -%] [% BLOCK list_subsections %] [%- SET p.parent_id = this_section_id result = list_sections( p ) sections = result.rows -%] [% IF result.total > 0 %] [% END %] [% END %]
[% PROCESS list_subsections this_section_id = 'none' %]
[% count %] total sections
[% END %]