Merged Old CMS code with new CMS code.

Pending: Update code to use the new theme
This commit is contained in:
jvelilla
2014-11-07 18:23:25 -03:00
parent 2c130cf882
commit 75d34870fa
8 changed files with 405 additions and 178 deletions

View File

@@ -39,7 +39,7 @@ feature -- Access
content: READABLE_STRING_8
format: CONTENT_FORMAT
format: detachable CONTENT_FORMAT
feature -- Status report
@@ -58,9 +58,14 @@ feature -- Conversion
to_html (a_theme: CMS_THEME): STRING_8
do
Result := content
end
-- Why in this particular case theme is not used to generate the content?
if attached format as f then
Result := f.formatted_output (content)
else
Result := content
end
end
note
copyright: "2011-2014, Jocelyn Fiat, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"