Is it possible to use razor syntax in Javascript files?

后端 未结 3 1616
既然无缘
既然无缘 2021-01-05 08:58

I\'d like to use razor syntax inside my Javascript files. Is this possible without including the javascript inline into the page?

3条回答
  •  时光取名叫无心
    2021-01-05 09:36

    I found a razor engine RazorJS on nuget that solves @ in js files
    The owner blog and explanations about the package abilities
    The Nuget package

    see more in this question

提交回复
热议问题