668: def value_hash
669: attribute_values
670: add_table_of_sections
671:
672: @values["charset"] = @options.charset
673: @values["style_url"] = style_url(path, @options.css)
674:
675: d = markup(@context.comment)
676: @values["description"] = d unless d.empty?
677:
678: if context.is_fact?
679: unless context.confine.empty?
680: res = {}
681: res["type"] = context.confine[:type]
682: res["value"] = context.confine[:value]
683: @values["confine"] = [res]
684: end
685: else
686: @values["type"] = context.type
687: end
688:
689: @values["sections"] = @context.sections.map do |section|
690: secdata = {
691: "sectitle" => section.title,
692: "secsequence" => section.sequence,
693: "seccomment" => markup(section.comment)
694: }
695: secdata
696: end
697:
698: @values
699: end