Files
Nim/enumutils.html
github-actions[bot] de413ab6bb Deploy to GitHub pages
2025-12-25 20:14:24 +00:00

271 lines
22 KiB
HTML

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>std/enumutils</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="nimdoc.out.css?v=2.3.1">
<!-- JS -->
<script type="text/javascript" src="dochack.js?v=2.3.1"></script>
</head>
<body>
<div class="document" id="documentId">
<div class="container">
<h1 class="title">std/enumutils</h1>
<div class="row">
<div class="three columns">
<div class="theme-select-wrapper">
<label for="theme-select">Theme:&nbsp;</label>
<select id="theme-select" onchange="setTheme(this.value)">
<option value="auto">🌗 Match OS</option>
<option value="dark">🌑 Dark</option>
<option value="light">🌕 Light</option>
</select>
</div>
<div id="global-links">
<ul class="simple-boot">
<li><a href="manual.html">Manual</a></li>
<li><a href="lib.html">Standard library</a></li>
<li> <a id="indexLink" href="theindex.html">Index</a></li>
<li><a href="compiler/theindex.html">Compiler docs</a></li>
<li><a href="https://nim-lang.github.io/fusion/theindex.html">Fusion docs</a></li>
<li><a href="https://nim-lang.github.io/Nim/">devel</a>, <a href="https://nim-lang.org/documentation.html">stable</a></li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="search" id="searchInput"
oninput="search()" />
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">symbolName
<li><a class="reference" href="#symbolName%2CT" title="symbolName[T: enum](a: T): string">symbolName[T: enum](a: T): string</a></li>
</ul>
</ul>
</details>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#15" id="65">Iterators</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">items
<li><a class="reference" href="#items.i%2Ctypedesc%5BT%5D" title="items[T: HoleyEnum](E: typedesc[T]): T">items[T: HoleyEnum](E: typedesc[T]): T</a></li>
</ul>
</ul>
</details>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#17" id="67">Macros</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">genEnumCaseStmt
<li><a class="reference" href="#genEnumCaseStmt.m%2Ctypedesc%2Ctyped%2Ctyped%2Cstatic%5Bint%5D%2Cstatic%5Bint%5D%2Cstatic%5Bproc%28string%29%5D" title="genEnumCaseStmt(typ: typedesc; argSym: typed; default: typed;
userMin, userMax: static[int];
normalizer: static[proc (s: string): string]): untyped">genEnumCaseStmt(typ: typedesc; argSym: typed; default: typed;
userMin, userMax: static[int];
normalizer: static[proc (s: string): string]): untyped</a></li>
</ul>
</ul>
</details>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#18" id="68">Templates</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">symbolRank
<li><a class="reference" href="#symbolRank.t%2CT" title="symbolRank[T: enum](a: T): int">symbolRank[T: enum](a: T): int</a></li>
</ul>
</ul>
</details>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/enumutils.nim#L1" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/enumutils.nim#L1" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
<div id="tocRoot"></div>
<p class="module-desc"></p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="macros.html">macros</a>, <a class="reference external" href="typetraits.html">typetraits</a>, <a class="reference external" href="assertions.html">assertions</a>
</dl>
</div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<div id="symbolName-procs-all">
<div id="symbolName,T">
<dt><pre><span class="Keyword">func</span> <a href="#symbolName%2CT"><span class="Identifier">symbolName</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Keyword">enum</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a></pre></dt>
<dd>
<p>Returns the symbol name of an enum.</p>
<p>This uses <tt class="docutils literal"><span class="pre"><span class="Identifier">symbolRank</span></span></tt>.</p>
<p><strong class="examples_text">Example:</strong></p>
<pre class="listing"><span class="Keyword">type</span> <span class="Identifier">B</span> <span class="Operator">=</span> <span class="Keyword">enum</span>
<span class="Identifier">b0</span> <span class="Operator">=</span> <span class="Punctuation">(</span><span class="DecNumber">10</span><span class="Punctuation">,</span> <span class="StringLit">&quot;kb0&quot;</span><span class="Punctuation">)</span>
<span class="Identifier">b1</span> <span class="Operator">=</span> <span class="StringLit">&quot;kb1&quot;</span>
<span class="Identifier">b2</span>
<span class="Keyword">let</span> <span class="Identifier">b</span> <span class="Operator">=</span> <span class="Identifier">B</span><span class="Operator">.</span><span class="Identifier">low</span>
<span class="Identifier">assert</span> <span class="Identifier">b</span><span class="Operator">.</span><span class="Identifier">symbolName</span> <span class="Operator">==</span> <span class="StringLit">&quot;b0&quot;</span>
<span class="Identifier">assert</span> <span class="Operator">$</span><span class="Identifier">b</span> <span class="Operator">==</span> <span class="StringLit">&quot;kb0&quot;</span>
<span class="Keyword">static</span><span class="Punctuation">:</span> <span class="Identifier">assert</span> <span class="Identifier">B</span><span class="Operator">.</span><span class="Identifier">high</span><span class="Operator">.</span><span class="Identifier">symbolName</span> <span class="Operator">==</span> <span class="StringLit">&quot;b2&quot;</span>
<span class="Keyword">type</span> <span class="Identifier">C</span> <span class="Operator">=</span> <span class="Keyword">enum</span> <span class="Comment"># HoleyEnum</span>
<span class="Identifier">c0</span> <span class="Operator">=</span> <span class="Operator">-</span><span class="DecNumber">3</span>
<span class="Identifier">c1</span> <span class="Operator">=</span> <span class="DecNumber">4</span>
<span class="Identifier">c2</span> <span class="Operator">=</span> <span class="DecNumber">20</span>
<span class="Identifier">assert</span> <span class="Identifier">c1</span><span class="Operator">.</span><span class="Identifier">symbolName</span> <span class="Operator">==</span> <span class="StringLit">&quot;c1&quot;</span></pre>
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/enumutils.nim#L180" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/enumutils.nim#L180" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</div>
</dl>
</div>
<div class="section" id="15">
<h1><a class="toc-backref" href="#15">Iterators</a></h1>
<dl class="item">
<div id="items-iterators-all">
<div id="items.i,typedesc[T]">
<dt><pre><span class="Keyword">iterator</span> <a href="#items.i%2Ctypedesc%5BT%5D"><span class="Identifier">items</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">:</span> <a href="typetraits.html#HoleyEnum"><span class="Identifier">HoleyEnum</span></a><span class="Other">]</span><span class="Other">(</span><span class="Identifier">E</span><span class="Other">:</span> <a href="system.html#typedesc"><span class="Identifier">typedesc</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">T</span></pre></dt>
<dd>
Iterates over an enum with holes.
<p><strong class="examples_text">Example:</strong></p>
<pre class="listing"><span class="Keyword">type</span>
<span class="Identifier">A</span> <span class="Operator">=</span> <span class="Keyword">enum</span>
<span class="Identifier">a0</span> <span class="Operator">=</span> <span class="DecNumber">2</span>
<span class="Identifier">a1</span> <span class="Operator">=</span> <span class="DecNumber">4</span>
<span class="Identifier">a2</span>
<span class="Identifier">B</span><span class="Punctuation">[</span><span class="Identifier">T</span><span class="Punctuation">]</span> <span class="Operator">=</span> <span class="Keyword">enum</span>
<span class="Identifier">b0</span> <span class="Operator">=</span> <span class="DecNumber">2</span>
<span class="Identifier">b1</span> <span class="Operator">=</span> <span class="DecNumber">4</span>
<span class="Keyword">from</span> <span class="Identifier">std</span><span class="Operator">/</span><span class="Identifier">sequtils</span> <span class="Keyword">import</span> <span class="Identifier">toSeq</span>
<span class="Identifier">assert</span> <span class="Identifier">A</span><span class="Operator">.</span><span class="Identifier">toSeq</span> <span class="Operator">==</span> <span class="Punctuation">[</span><span class="Identifier">a0</span><span class="Punctuation">,</span> <span class="Identifier">a1</span><span class="Punctuation">,</span> <span class="Identifier">a2</span><span class="Punctuation">]</span>
<span class="Identifier">assert</span> <span class="Identifier">B</span><span class="Punctuation">[</span><span class="Identifier">float</span><span class="Punctuation">]</span><span class="Operator">.</span><span class="Identifier">toSeq</span> <span class="Operator">==</span> <span class="Punctuation">[</span><span class="Identifier">B</span><span class="Punctuation">[</span><span class="Identifier">float</span><span class="Punctuation">]</span><span class="Operator">.</span><span class="Identifier">b0</span><span class="Punctuation">,</span> <span class="Identifier">B</span><span class="Punctuation">[</span><span class="Identifier">float</span><span class="Punctuation">]</span><span class="Operator">.</span><span class="Identifier">b1</span><span class="Punctuation">]</span></pre>
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/enumutils.nim#L94" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/enumutils.nim#L94" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</div>
</dl>
</div>
<div class="section" id="17">
<h1><a class="toc-backref" href="#17">Macros</a></h1>
<dl class="item">
<div id="genEnumCaseStmt-macros-all">
<div id="genEnumCaseStmt.m,typedesc,typed,typed,static[int],static[int],static[proc(string)]">
<dt><pre><span class="Keyword">macro</span> <a href="#genEnumCaseStmt.m%2Ctypedesc%2Ctyped%2Ctyped%2Cstatic%5Bint%5D%2Cstatic%5Bint%5D%2Cstatic%5Bproc%28string%29%5D"><span class="Identifier">genEnumCaseStmt</span></a><span class="Other">(</span><span class="Identifier">typ</span><span class="Other">:</span> <a href="system.html#typedesc"><span class="Identifier">typedesc</span></a><span class="Other">;</span> <span class="Identifier">argSym</span><span class="Other">:</span> <a href="system.html#typed"><span class="Identifier">typed</span></a><span class="Other">;</span> <span class="Identifier">default</span><span class="Other">:</span> <a href="system.html#typed"><span class="Identifier">typed</span></a><span class="Other">;</span>
<span class="Identifier">userMin</span><span class="Other">,</span> <span class="Identifier">userMax</span><span class="Other">:</span> <a href="system.html#static"><span class="Identifier">static</span></a><span class="Other">[</span><a href="system.html#int"><span class="Identifier">int</span></a><span class="Other">]</span><span class="Other">;</span>
<span class="Identifier">normalizer</span><span class="Other">:</span> <a href="system.html#static"><span class="Identifier">static</span></a><span class="Other">[</span><span class="Keyword">proc</span> <span class="Other">(</span><span class="Identifier">s</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="system.html#untyped"><span class="Identifier">untyped</span></a></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/enumutils.nim#L19" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/enumutils.nim#L19" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</div>
</dl>
</div>
<div class="section" id="18">
<h1><a class="toc-backref" href="#18">Templates</a></h1>
<dl class="item">
<div id="symbolRank-templates-all">
<div id="symbolRank.t,T">
<dt><pre><span class="Keyword">template</span> <a href="#symbolRank.t%2CT"><span class="Identifier">symbolRank</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Keyword">enum</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a></pre></dt>
<dd>
<p>Returns the index in which <tt class="docutils literal"><span class="pre"><span class="Identifier">a</span></span></tt> is listed in <tt class="docutils literal"><span class="pre"><span class="Identifier">T</span></span></tt>.</p>
<p>The cost for a <tt class="docutils literal"><span class="pre"><span class="Identifier">HoleyEnum</span></span></tt> is implementation defined, currently optimized for small enums, otherwise is <tt class="docutils literal"><span class="pre"><span class="Identifier">O</span><span class="Punctuation">(</span><span class="Identifier">T</span><span class="Operator">.</span><span class="Identifier">enumLen</span><span class="Punctuation">)</span></span></tt>.</p>
<p><strong class="examples_text">Example:</strong></p>
<pre class="listing"><span class="Keyword">type</span>
<span class="Identifier">A</span> <span class="Operator">=</span> <span class="Keyword">enum</span> <span class="Comment"># HoleyEnum</span>
<span class="Identifier">a0</span> <span class="Operator">=</span> <span class="Operator">-</span><span class="DecNumber">3</span>
<span class="Identifier">a1</span> <span class="Operator">=</span> <span class="DecNumber">10</span>
<span class="Identifier">a2</span>
<span class="Identifier">a3</span> <span class="Operator">=</span> <span class="Punctuation">(</span><span class="DecNumber">20</span><span class="Punctuation">,</span> <span class="StringLit">&quot;f3Alt&quot;</span><span class="Punctuation">)</span>
<span class="Identifier">B</span> <span class="Operator">=</span> <span class="Keyword">enum</span> <span class="Comment"># OrdinalEnum</span>
<span class="Identifier">b0</span>
<span class="Identifier">b1</span>
<span class="Identifier">b2</span>
<span class="Identifier">C</span> <span class="Operator">=</span> <span class="Keyword">enum</span> <span class="Comment"># OrdinalEnum</span>
<span class="Identifier">c0</span> <span class="Operator">=</span> <span class="DecNumber">10</span>
<span class="Identifier">c1</span>
<span class="Identifier">c2</span>
<span class="Identifier">assert</span> <span class="Identifier">a2</span><span class="Operator">.</span><span class="Identifier">symbolRank</span> <span class="Operator">==</span> <span class="DecNumber">2</span>
<span class="Identifier">assert</span> <span class="Identifier">b2</span><span class="Operator">.</span><span class="Identifier">symbolRank</span> <span class="Operator">==</span> <span class="DecNumber">2</span>
<span class="Identifier">assert</span> <span class="Identifier">c2</span><span class="Operator">.</span><span class="Identifier">symbolRank</span> <span class="Operator">==</span> <span class="DecNumber">2</span>
<span class="Identifier">assert</span> <span class="Identifier">c2</span><span class="Operator">.</span><span class="Identifier">ord</span> <span class="Operator">==</span> <span class="DecNumber">12</span>
<span class="Identifier">assert</span> <span class="Identifier">a2</span><span class="Operator">.</span><span class="Identifier">ord</span> <span class="Operator">==</span> <span class="DecNumber">11</span>
<span class="Keyword">var</span> <span class="Identifier">invalid</span> <span class="Operator">=</span> <span class="FloatNumber">7.</span><span class="Identifier">A</span>
<span class="Identifier">doAssertRaises</span><span class="Punctuation">(</span><span class="Identifier">IndexDefect</span><span class="Punctuation">)</span><span class="Punctuation">:</span> <span class="Keyword">discard</span> <span class="Identifier">invalid</span><span class="Operator">.</span><span class="Identifier">symbolRank</span></pre>
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/enumutils.nim#L147" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/enumutils.nim#L147" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</div>
</dl>
</div>
</div>
</div>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2025-12-25 20:13:54 UTC</small>
</div>
</div>
</div>
<script defer data-domain="nim-lang.org" src="https://plausible.io/js/plausible.js"></script>
</body>
</html>