2 local url = data['url']
3 local title = data['title'] or "No title set"
4 local height = data['height'] or "400px"
5 if type(height) == "number" then
6 height = height .. "px"
8 local width = data['width'] or "100%"
9 if type(width) == "number" then
15 <div id="<%=name%>" style="width:<%=width%>;float:left;">
23 <div style="height:<%=height%>;min-height:<%=height%>">
24 <object type="text/html" data="<%=url%>" width="100%" height="<%=height%>" name="widget_<%=name%>" id="widget_<%=name%>">
25 <param name="src" value="<%=url%>" />
26 <%:Sorry, your browser doesn't support the object tag and cannot display this page:%><br />
27 <a href="<%=url%>"><%=url%></a>