示例#1
0
 public object Get(HelloHtml request)
 {
     return("<h1>Hello, HTML!</h1>"
            + "<div><a href='{0}'>Hello File</a></div>".Fmt(new HelloFile().ToGetUrl())
            + "<div><a href='{0}'>Hello Image</a></div>".Fmt(new HelloImage
     {
         Name = "World",
         Background = "Blue",
         Foreground = "Yellow",
         FontSize = 48,
         Height = 600,
         Width = 800,
     }.ToGetUrl()));
 }
示例#2
0
 public object Get(HelloHtml request)
 {
     return("<h1>Hello, {0}!</h1>".Fmt(request.Name));
 }