Simplify CMS_SERVICE initialization, and CMS server (launcher).

Renamed "layout" lib as "app_env" with APPLICATION_ENVIRONMENT interface.
  applied changed to callers.
Added CMS_THEME.has_region (a_name): BOOLEAN to know if a region is declared in a defined theme.
This commit is contained in:
2015-04-29 23:01:42 +02:00
parent 0eb2b70d0f
commit 6ff7a6493c
34 changed files with 214 additions and 154 deletions

View File

@@ -33,6 +33,14 @@ feature -- Access
deferred
end
feature -- Status report
has_region (a_region_name: READABLE_STRING_GENERAL): BOOLEAN
-- Current theme has region `a_region_name' declared?
do
Result := across regions as ic some a_region_name.is_case_insensitive_equal (ic.item) end
end
feature -- Conversion
menu_html (a_menu: CMS_MENU; is_horizontal: BOOLEAN; a_options: detachable CMS_HTML_OPTIONS): STRING_8