My Command
This commit is contained in:
		
							parent
							
								
									0192479c73
								
							
						
					
					
						commit
						4ab8f5e919
					
				|  | @ -0,0 +1,4 @@ | |||
| FROM onedev.site.tesses.net/crosslang/crosslangextras/crosslangextras:latest | ||||
| EXPOSE 4206 | ||||
| RUN pwd | ||||
| ENTRYPOINT ["crosslang","run"] | ||||
|  | @ -23,4 +23,4 @@ func Pages.About() | |||
|         <null><img src="./image.png"><p>{ipsum}</p></null> | ||||
|     ); | ||||
| } | ||||
| var ipsum=""; | ||||
| var ipsum="Lorem ipsum dolor sit amet consectetur adipisicing elit. Harum, quisquam! Voluptatibus fuga sequi explicabo saepe itaque ullam temporibus laborum, ad incidunt, perferendis voluptatem ut dicta quas enim repellat molestias ab?"; | ||||
|  | @ -17,11 +17,13 @@ func Pages.Index() | |||
|                 text = "About" | ||||
|             } | ||||
|         ]; | ||||
|         var path = .; | ||||
|    return Components.Shell("Main Page",pages,<section> | ||||
|    <form action="./echo" method="GET"> | ||||
|         <input type="text" name="text" placeholder="Text to echo"> | ||||
|         <input type="submit" value="Echo it"> | ||||
|    </form> | ||||
|    <p>{path.MakeAbsolute().ToString()}</p> | ||||
|    <p>1 John 4:4: You, dear children, are from God and have overcome them, because the one who is in you is greater than the one who is in the world.</p> | ||||
|    </section>); | ||||
| } | ||||
|  | @ -14,7 +14,7 @@ func main(args) | |||
|         } | ||||
|         else if(ctx.Path == "/about") | ||||
|         { | ||||
|             ctx.WithMimeType("text/html").SendText(Pages.Index()); | ||||
|             ctx.WithMimeType("text/html").SendText(Pages.About()); | ||||
|             return true; | ||||
|         } | ||||
|         else if(ctx.Path == "/echo") | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue