def referenced_sections recursive = true
      result = PartialParser.find_sections partial_content

      # Find all sections within the already known sections.
      if recursive
        i = -1
        while (i += 1) < result.size
          Section.new(result[i]).referenced_sections(false).each do |referenced_section|
            result << referenced_section unless result.include? referenced_section
          end
        end
      end
      result.sort!
    end
def referenced_sections recursive = true
      result = PartialParser.find_sections partial_content

      # Find all sections within the already known sections.
      if recursive
        i = -1
        while (i += 1) < result.size
          Section.new(result[i]).referenced_sections(false).each do |referenced_section|
            result << referenced_section unless result.include? referenced_section
          end
        end
      end
      result.sort!
    end
Returns the sections that this section references.
 If 'recursive = true' is given, searches recursively for sections referenced by the referenced sections.
 Otherwise, simply returns the sections that are referenced by this section.