examples/cookie/templates/toppage.dtl
raw| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <title>Cowboy Cookie Example</title> |
| 6 | </head> |
| 7 | |
| 8 | <body> |
| 9 | <h1>Cowboy Cookie Example</h1> |
| 10 | <p>Refresh the page to see the next cookie.</p> |
| 11 | |
| 12 | <h2>Cookie Set Server-Side</h2> |
| 13 | <p>{{ server }}</p> |
| 14 | |
| 15 | <h2>Cookie Set Client-Side</h2> |
| 16 | <p>{{ client }}</p> |
| 17 | |
| 18 | <script type="text/javascript"> |
| 19 | // <![CDATA[ |
| 20 | document.cookie="client=test="; |
| 21 | // ]]> |
| 22 | </script> |
| 23 | </body> |
| 24 | </html> |