Render() 공개 메소드

public Render ( string bodyContent ) : string
bodyContent string
리턴 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;
 }