Hacker News new | past | comments | ask | show | jobs | submit login

I think* with ASP.NET Razor Pages. You can do the same thing as:

  @page
  @{
    var user = "root";
  }

  <p>
     Hello @user
  </p>



Razor is awesome... It has this productivity of PHP while being consistent and have the benefit of being conceived later.

Only thing which hurts there: not everywhere deployed like PHP is :)

And technically you need a 2 files boilerplate. But that will vanish within the next year when I understand the .NET team right.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: