From 4ab8f5e919b869bd3e63786a8f0db916b169a114 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Thu, 3 Jul 2025 14:12:21 -0500 Subject: [PATCH] My Command --- Dockerfile | 4 ++++ src/pages/about.tcross | 2 +- src/pages/index.tcross | 2 ++ src/program.tcross | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..701b3cd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM onedev.site.tesses.net/crosslang/crosslangextras/crosslangextras:latest +EXPOSE 4206 +RUN pwd +ENTRYPOINT ["crosslang","run"] \ No newline at end of file diff --git a/src/pages/about.tcross b/src/pages/about.tcross index a04a72f..0074d6d 100644 --- a/src/pages/about.tcross +++ b/src/pages/about.tcross @@ -23,4 +23,4 @@ func Pages.About()

{ipsum}

); } -var ipsum=""; \ No newline at end of file +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?"; \ No newline at end of file diff --git a/src/pages/index.tcross b/src/pages/index.tcross index e698dee..3a307d8 100644 --- a/src/pages/index.tcross +++ b/src/pages/index.tcross @@ -17,11 +17,13 @@ func Pages.Index() text = "About" } ]; + var path = .; return Components.Shell("Main Page",pages,
+

{path.MakeAbsolute().ToString()}

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.

); } \ No newline at end of file diff --git a/src/program.tcross b/src/program.tcross index 671f65f..1030547 100644 --- a/src/program.tcross +++ b/src/program.tcross @@ -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")