Add codeview

This commit is contained in:
YNH Webdev
2013-09-28 16:24:51 +02:00
parent d3299f8e06
commit 01327a4b06
14 changed files with 6618 additions and 43 deletions

View File

@@ -81,6 +81,7 @@ feature -- Router and Filter
map_agent_uri ("/grid", agent grid_demo, Void)
map_agent_uri ("/repeater", agent repeater_demo, Void)
map_agent_uri ("/slider", agent slider_demo, Void)
map_agent_uri ("/codeview", agent codeview, Void)
-- NOTE: you could put all those files in a specific folder, and use WSF_FILE_SYSTEM_HANDLER with "/"
-- this way, it handles the caching and so on
@@ -136,5 +137,15 @@ feature -- Execution
page.execute
end
codeview (request: WSF_REQUEST; response: WSF_RESPONSE)
local
page: CODEVIEW_PAGE
do
-- To send a response we need to setup, the status code and
-- the response headers.
create page.make (request, response)
page.execute
end
end