737: def value_hash
738: attribute_values
739: add_table_of_sections
740:
741: @values["charset"] = @options.charset
742: @values["style_url"] = style_url(path, @options.css)
743:
744: d = markup(@context.comment)
745: @values["description"] = d unless d.empty?
746:
747: if context.is_fact?
748: unless context.confine.empty?
749: res = {}
750: res["type"] = context.confine[:type]
751: res["value"] = context.confine[:value]
752: @values["confine"] = [res]
753: end
754: else
755: @values["type"] = context.type
756: end
757:
758: @values["sections"] = @context.sections.map do |section|
759: secdata = {
760: "sectitle" => section.title,
761: "secsequence" => section.sequence,
762: "seccomment" => markup(section.comment)
763: }
764: secdata
765: end
766:
767: @values
768: end