Added sitemap support on node module.

code cleaning.
This commit is contained in:
2017-02-10 13:34:49 +01:00
parent 1c902db377
commit ccf1040513
7 changed files with 322 additions and 62 deletions

View File

@@ -28,6 +28,8 @@ feature -- Change
subscribe_to_hook (h: CMS_HOOK; a_hook_type: TYPE [CMS_HOOK])
-- Subscribe `h' to hooks identified by `a_hook_type'.
require
h_is_expected_hook: a_hook_type.attempted (h) = h
local
lst: detachable LIST [CMS_HOOK]
do
@@ -49,7 +51,7 @@ invariant
all_subscribers /= Void
note
copyright: "2011-2015, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
end

View File

@@ -792,14 +792,14 @@ feature -- Environment/ module
module_resource_location (a_module: CMS_MODULE; a_resource: PATH): PATH
-- Location of resource `a_resource' for `a_module'.
do
--| site/modules/$modname/$a_name.json
--| site/modules/$modname/$a_resource
Result := module_resource_location_by_name (a_module.name, a_resource)
end
module_resource_location_by_name (a_module_name: READABLE_STRING_GENERAL; a_resource: PATH): PATH
-- Location of resource `a_resource' for `a_module'.
do
--| site/modules/$modname/$a_name.json
--| site/modules/$modname/$a_resource
Result := module_location_by_name (a_module_name).extended_path (a_resource)
end