Repository: mufeedvh/binserve (language: rust)

Issue:
Move the ASCII art to a separate file
I was inspecting your sources, The ASCII art didn't looked good in the middle of the source code. It would be better if you move it to a separate file or maybe make it a `const`. Also the line that tells about the host and port could be put along with the ASCII art. You should use the `include_str!` macro to include it into the source code during compilation and use it in the `println!` also specifying the host and port


Discussion / hints:
Hey @arijit79, thanks for raising this issue! This is indeed a good way to do, I will make a banner file that gets printed out with `include_str!` during execution. It does seem messy inside the code, I will definitely push this change soon! :heart::raised_hands:
Also, unrelated to this issue, but something related to formatting is that your files in the static folder are all in one line, you should probably format them according HTML writing styles. If you use an IDE like VSCode or Atom, they have plugins to improve the formatting of HTML
I just made it one-liners because it's default generated templates and short in LOC. But yes it would improve readability in format, thank you for the request, I will definitely look into this as well. :smiley::+1:
I will filing a PR to fix the HTML issue
Awesome @arijit79, thank you! :heart::raised_hands:

Fix patch:
diff --git a/static/404.html b/static/404.html
index 958026c..9360b75 100644
--- a/static/404.html
+++ b/static/404.html
@@ -1,1 +1,8 @@
-<html><title>404 Not Found</title><body><h1>404 Not Found</h1><hr><p><i>binserve v0.1.0</i></p></body></html>
\ No newline at end of file
+<html>
+	<title>404 Not Found</title>
+	<body>
+		<h1>404 Not Found</h1>
+		<hr>
+		<p><i>binserve v0.1.0</i></p>
+	</body>
+</html>
diff --git a/static/index.html b/static/index.html
index e57bb02..b0d7ea5 100644
--- a/static/index.html
+++ b/static/index.html
@@ -1,1 +1,9 @@
-<html><title>{{name}}</title><body><h1>Hello, universe!</h1><h2>{{name}} is up and running!</h2><hr><p><i>binserve v0.1.0</i></p></body></html>
\ No newline at end of file
+<html>
+	<title>{{name}}</title>
+	<body>
+		<h1>Hello, universe!</h1>
+		<h2>{{name}} is up and running!</h2>
+		<hr>
+		<p><i>binserve v0.1.0</i></p>
+	</body>
+</html>


Test patch: