Extended autocompletion with customized templates
This commit is contained in:
@@ -34,6 +34,8 @@ feature {NONE} -- Initialization
|
||||
-- router.map (create {WSF_URI_MAPPING}.make ("/hello", create {WSF_AGENT_URI_HANDLER}.make (agent execute_hello)))
|
||||
map_agent_uri ("/", agent execute_hello, Void)
|
||||
map_agent_uri ("/widget.js", agent load_js, Void)
|
||||
map_agent_uri ("/widget.css", agent load_css, Void)
|
||||
map_agent_uri ("/bootstrap.min.css", agent load_bootstrap, Void)
|
||||
end
|
||||
|
||||
feature -- Helper: mapping
|
||||
@@ -63,4 +65,20 @@ feature -- Execution
|
||||
res.send (f)
|
||||
end
|
||||
|
||||
load_css (req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||
local
|
||||
f: WSF_FILE_RESPONSE
|
||||
do
|
||||
create f.make_html ("widget.css")
|
||||
res.send (f)
|
||||
end
|
||||
|
||||
load_bootstrap (req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||
local
|
||||
f: WSF_FILE_RESPONSE
|
||||
do
|
||||
create f.make_html ("bootstrap.min.css")
|
||||
res.send (f)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user