diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..05dee64 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "plugins": ["prettier-plugin-jinja-template"], + "overrides": [ + { + "files": ["*.hbs"], + "options": { + "parser": "jinja-template" + } + } + ] +} diff --git a/package.json b/package.json index eb1c75f..5767bca 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "prettier-check": "prettier . --check" }, "devDependencies": { - "prettier": "^3.1.1" + "prettier": "^3.2.5", + "prettier-plugin-jinja-template": "^1.3.3" } } diff --git a/src/index.hbs b/src/index.hbs index 033bd17..538c268 100644 --- a/src/index.hbs +++ b/src/index.hbs @@ -1,4 +1,7 @@ -{% if https %} {% set scheme = "https" %} {% else %} {% set scheme = "http" %} +{% if https %} + {% set scheme = "https" %} +{% else %} + {% set scheme = "http" %} {% endif %}
@@ -7,59 +10,58 @@ - + - + - + {% if ipv4 %} -{{ipv4}}
- {{ ipv4 }}
+ (none)
- {{ipv6}}
- (none)
+ {{ ipv6 }}
+ (none)
- (none)
+