tests/inputs/test.vbhtml
raw| 1 | @{ |
| 2 | ' VB.NET code in a vbhtml file |
| 3 | ViewBag.Title = "Test Page" |
| 4 | Dim message As String = "Hello from VB.NET" |
| 5 | } |
| 6 | |
| 7 | <!DOCTYPE html> |
| 8 | <html> |
| 9 | <head> |
| 10 | <title>@ViewBag.Title</title> |
| 11 | </head> |
| 12 | <body> |
| 13 | <h1>@message</h1> |
| 14 | @If True Then |
| 15 | @<p>This is a VB.NET HTML template</p> |
| 16 | End If |
| 17 | </body> |
| 18 | </html> |