Razor with JavaScript

Today I had a problem of adding markers onto a google map. I didn't really want to create a service to handle the request and return an array. So instead I tried doing something simpler.

This obviously didn't work. Razor was getting confused; it didn't know which one was the script and which one was the text. The solution to this problem is actually very simple: <text> tag. It allow razer to distinguish between the script and razor.