master
Harald Wolff 2019-03-14 13:31:03 +01:00
parent 23e1787298
commit 009a7451c0
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ namespace ln.http.resources
context.ExpressionContext.AddMappedValue("response", httpResponse);
context.ExpressionContext.AddMappedValue("this", This);
httpResponse.ContentWriter.Write(Template.Generate(context));
bool unframed = httpRequest.GetRequestHeader("x-template-unframed", "framed").Equals("unframed");
httpResponse.ContentWriter.Write(Template.Generate(context,unframed));
return httpResponse;
}