You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
895 B
46 lines
895 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Web;
|
|
|
|
namespace FLocal.IISHandler {
|
|
class WebContext {
|
|
|
|
public readonly HttpContext httpcontext;
|
|
|
|
public HttpRequest httprequest {
|
|
get {
|
|
return this.httpcontext.Request;
|
|
}
|
|
}
|
|
|
|
public HttpResponse httpresponse {
|
|
get {
|
|
return this.httpcontext.Response;
|
|
}
|
|
}
|
|
|
|
public designs.IDesign design {
|
|
get {
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
public Common.Config config {
|
|
get {
|
|
return Common.Config.instance;
|
|
}
|
|
}
|
|
|
|
public WebContext(HttpContext httpcontext) {
|
|
this.httpcontext = httpcontext;
|
|
}
|
|
|
|
public string Transform(string templateName, System.Xml.Linq.XDocument data) {
|
|
//TODO: this should work according to design!
|
|
return TemplateEngine.Compile(templateName, data);
|
|
}
|
|
|
|
}
|
|
}
|
|
|