kirbysayshi / vash

Vash, the 60 billion double-dollar template-maker. Razor syntax, for JavaScript templates
Other
522 stars 60 forks source link

Add Support for Tag Helpers #132

Open ChayimFriedman2 opened 4 years ago

ChayimFriedman2 commented 4 years ago

ASP.NET Core added support for Tag Helpers, a nice feature permits you to write use html helpers without actually using them.

For example, vash with tag helpers can replace the following code:

@{
  var s = '<img />';
}
@html.raw(s)

With the following:

@{
  var s = '<img />';
}
<vash-raw>s</vash-raw>

This opens the door to many cool possibilites. And the ability to define custom tag helpers is awesome. If vash will support the same thing, that would be great.