Don't use orderedDict.

        And switch resource_to_html back into Fragment.