|
|
@ -5,36 +5,36 @@ using System.Text; |
|
|
|
using System.Web; |
|
|
|
using System.Web; |
|
|
|
|
|
|
|
|
|
|
|
namespace FLocal.IISHandler { |
|
|
|
namespace FLocal.IISHandler { |
|
|
|
class WebContext { |
|
|
|
class WebContext { |
|
|
|
|
|
|
|
|
|
|
|
public readonly HttpContext httpcontext; |
|
|
|
public readonly HttpContext httpcontext; |
|
|
|
|
|
|
|
|
|
|
|
public HttpRequest httprequest { |
|
|
|
public HttpRequest httprequest { |
|
|
|
get { |
|
|
|
get { |
|
|
|
return this.httpcontext.Request; |
|
|
|
return this.httpcontext.Request; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public HttpResponse httpresponse { |
|
|
|
public HttpResponse httpresponse { |
|
|
|
get { |
|
|
|
get { |
|
|
|
return this.httpcontext.Response; |
|
|
|
return this.httpcontext.Response; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public designs.IDesign design { |
|
|
|
public designs.IDesign design { |
|
|
|
get { |
|
|
|
get { |
|
|
|
throw new NotImplementedException(); |
|
|
|
throw new NotImplementedException(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public WebContext(HttpContext httpcontext) { |
|
|
|
public WebContext(HttpContext httpcontext) { |
|
|
|
this.httpcontext = httpcontext; |
|
|
|
this.httpcontext = httpcontext; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public string Transform(string templateName, System.Xml.Linq.XDocument data) { |
|
|
|
public string Transform(string templateName, System.Xml.Linq.XDocument data) { |
|
|
|
//TODO: this should work according to design! |
|
|
|
//TODO: this should work according to design! |
|
|
|
return TemplateEngine.Compile(templateName, data); |
|
|
|
return TemplateEngine.Compile(templateName, data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|