github.com/scottcagno/storage@v1.8.0/cmd/web/data/templatesORIG/func-test.html (about) 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 {{ template "header.stub.html" }} 5 <title>Blog | Index</title> 6 </head> 7 <body> 8 <div class="content"> 9 <div class="container"> 10 <h1>Index</h1> 11 <p>This is the index page</p> 12 </p>{{ .Data }}</p> 13 <p>Add: 123+89321={{ add 123 89321 }} (89444)</p> 14 <p>Mod: 24 % 5={{ mod 24 5 }} (4)</p> 15 <p>Rand: {{ rand 35 625 }} (between 35 and 625)</p> 16 <p>Log2: log2(72.0)={{ log2 72.0 }} (6.16)</p> 17 <p>Log: log(21.0)={{ log 21.0 }} (1.32)</p> 18 <p>Custom: {{ love "victoria" }}</p> 19 <p>this is the title of my book {{ title "this is the title of my book" }}</p> 20 <hr> 21 {{ template "links.stub.html" }} 22 </div> 23 </div> 24 {{ template "scripts.stub.html" }} 25 {{ template "footer.stub.html" }} 26 </body> 27 </html>