Files
Mastering-Node.js-Web-Devel…/Chapter 10/End of Chapter/part2app/templates/server/counter.custom
T
2024-05-29 18:54:49 +01:00

14 lines
367 B
Plaintext

<!DOCTYPE html>
<html>
<head>{{ @style("bootstrap.min.css") }}</head>
<body>
<a class="btn btn-primary m-2"
href="/dynamic/counter?c={{ Number(req.query.c ?? 0) + 1}}">
Increment
</a>
<div>
{{ @conditional("(req.query.c ?? 0) % 2", "odd", "even") }}
</div>
</body>
</html>