Closed do4ng closed 1 year ago
root/pages ├── index.html └── users └── $id.html
<!--users/$id.html--> <script> const { id } = JSON.parse(document.getElementById("page-data")); </script>
HTML file is supported now.
<!--users/$id.html--> <script> const { id } = JSON.parse(document.getElementById("page-data")); // ERROR! </script>
<!--users/user1.html--> <h1>User 1 page</h1>