My Command

This commit is contained in:
Mike Nolan 2025-07-03 14:12:21 -05:00
parent 0192479c73
commit 4ab8f5e919
4 changed files with 8 additions and 2 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM onedev.site.tesses.net/crosslang/crosslangextras/crosslangextras:latest
EXPOSE 4206
RUN pwd
ENTRYPOINT ["crosslang","run"]

View File

@ -23,4 +23,4 @@ func Pages.About()
<null><img src="./image.png"><p>{ipsum}</p></null> <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?";

View File

@ -17,11 +17,13 @@ func Pages.Index()
text = "About" text = "About"
} }
]; ];
var path = .;
return Components.Shell("Main Page",pages,<section> return Components.Shell("Main Page",pages,<section>
<form action="./echo" method="GET"> <form action="./echo" method="GET">
<input type="text" name="text" placeholder="Text to echo"> <input type="text" name="text" placeholder="Text to echo">
<input type="submit" value="Echo it"> <input type="submit" value="Echo it">
</form> </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> <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>); </section>);
} }

View File

@ -14,7 +14,7 @@ func main(args)
} }
else if(ctx.Path == "/about") else if(ctx.Path == "/about")
{ {
ctx.WithMimeType("text/html").SendText(Pages.Index()); ctx.WithMimeType("text/html").SendText(Pages.About());
return true; return true;
} }
else if(ctx.Path == "/echo") else if(ctx.Path == "/echo")