From 72c0136f57aff2b4a90390ed2edc37f792b64d84 Mon Sep 17 00:00:00 2001 From: CaffeineFueled Date: Sat, 19 Oct 2024 01:28:30 +0200 Subject: [PATCH] init --- README.md | 89 ++++++++++++++++++++++++++ index.html | 181 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 270 insertions(+) create mode 100644 README.md create mode 100644 index.html diff --git a/README.md b/README.md new file mode 100644 index 0000000..cf5d9cc --- /dev/null +++ b/README.md @@ -0,0 +1,89 @@ +# Simple Variable List Iterator + +Not even sure if the name makes sense, but I hope it makes sense. + +Let me know if there is a better tool. Didn't came across so I created this. It works for me, that is all care of. + +Works with 1 to `n` variables. If a line is empty, it will add `null` (as in nothing). `[var1]` should be the longest list. + +## [Live Demo](https://ittavern.com/svli) + +## Examples + +``` +Template: + +Hi, the IP of [var1]'s DNS server is [var2]. + +------------------- + +Variables: + +[var1] +Google +Cloudflare + +[var2] +8.8.8.8 +1.1.1.1 + +------------------- + +Results: +Hi, the IP of Google's DNS server is 8.8.8.8. +Hi, the IP of Cloudflare's DNS server is 1.1.1.1. + +``` + +``` +Template: + +edit [var4]_[var1] + set ip [var2] [var3] + +------------------- + +Variables: + +[var1] +app-01 +app-02 +hr-01 + +[var2] +10.10.10.15 +10.10.10.16 +10.10.20.45 + +[var3] +255.255.255.0 +255.255.255.0 +255.255.255.0 + +[var4] +server +server +client + +------------------- + +Results: + +edit server_app-01 + set ip 10.10.10.15 255.255.255.0 +edit server_app-02 + set ip 10.10.10.16 255.255.255.0 +edit client_hr-01 + set ip 10.10.20.45 255.255.255.0 + +``` + +# How-to + +Download the `index.html` file, open it in your browser, done. Everything you need in one file. + +# TODO + +- [ ] License +- [ ] Footer with Git reference + License +- [ ] Save everything temporary to local storage to avoid data loss \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..5ec7b1c --- /dev/null +++ b/index.html @@ -0,0 +1,181 @@ + + + + + SVLI + + + + + +
+

Simple Variable List Iterator

+

Template:

+ +
+

Variables:

+
+
+ +
+
+ +
+
+
+
+ + + + +
+ + +