Render() public method

public Render ( string bodyContent ) : string
bodyContent string
return string
示例#1
0
 static Reply SubmissionTest(Request request)
 {
     Document document = new Document("Submission");
     string body = "";
     foreach (var entry in request.Content)
         body += Markup.Paragraph(string.Format("{0}: {1}", entry.Key, entry.Value));
     Reply reply = new Reply(document.Render(body));
     return reply;
 }
示例#2
0
 static Reply MarkupTest(Request request)
 {
     Document document = new Document("<Test>");
     string body = Markup.Paragraph(Markup.Bold("Success!"));
     body += Markup.Paragraph(string.Format("The path of this handler is: {0}", Markup.Bold(request.RequestHandler.GetPath())));
     string form = Markup.Text("input1") + Markup.Text("input2") + Markup.Submit("Submit");
     body += Markup.Form(SubmissionHandler.GetPath(), form);
     Reply reply = new Reply(document.Render(body));
     return reply;
 }