class REPOSITORY_HTML_TEMPLATES

(source code)

description

Repository HTML templates

note
	description: "Repository HTML templates"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2023-09-17 13:37:33 GMT (Sunday 17th September 2023)"
	revision: "10"

class
	REPOSITORY_HTML_TEMPLATES

inherit
	EL_EIF_OBJ_BUILDER_CONTEXT
		rename
			make_default as make
		redefine
			make
		end

create
	make

feature {NONE} -- Initialization

	make
		do
			create config_dir
			create main
			create directory_content
			create eiffel_source
			create site_map_content
			create favicon_markup_path
			Precursor
		end

feature -- Access

	directory_content: FILE_PATH

	eiffel_source: FILE_PATH

	main: FILE_PATH

	site_map_content: FILE_PATH

	favicon_markup_path: FILE_PATH

feature -- Element change

	set_config_dir (a_config_dir: like config_dir)
		do
			config_dir := a_config_dir
		end

feature {NONE} -- Implementation

	config_dir: DIR_PATH

feature {NONE} -- Build from Pyxis

	building_action_table: EL_PROCEDURE_TABLE [STRING]
		do
			create Result.make (<<
				["@main",					agent do set_path_from_node (main) end],
				["@eiffel_source",		agent do set_path_from_node (eiffel_source) end],
				["@site_map_content",	agent do set_path_from_node (site_map_content) end],
				["@directory_content",	agent do set_path_from_node (directory_content) end],
				["@favicon_markup", 		agent do favicon_markup_path := config_dir + node.to_string  end]
			>>)
		end

	set_path_from_node (file_path: FILE_PATH)
		do
			file_path.set_path (config_dir + node.to_string)
		end

end