DELETEME WebPlugins are no longer used as a separate objects
====== WebPlugin ======

WebPlugins provide an interface for the server through a webpage, to be able to use WebPlugins you need to enable WebAdmin in webadmin.ini{{ :api:webadmin.png?200| A WebPlugin in action}}
<code ini>
[WebAdmin]
Enabled=1
Port=8080
</code>


===== Creating a WebPlugin =====
FIXME This is not correct anymore
This is a WebPlugin in its base form
<code lua>
local WebPlugin = {}
WebPlugin.__index = WebPlugin

function WebPlugin:new()
	local t = {}
	setmetatable(t, WebPlugin)
	local w = Lua__cWebPlugin:new()
	tolua.setpeer(w, t)
	w:tolua__set_instance(w)
	return w
end

function WebPlugin:HandleRequest( Request )
	return "Some HTML code"
end

local MyPlugin = WebPlugin:new()
MyPlugin:SetName("MyWebPlugin")
</code>
====== Documented Items ======
A list of items regarding WebPlugins that have been documented

{{indexmenu>:api:webplugin#1}}