• Login
  • Register

DNN Blogs

Written for the Community, by the Community

RazorBlade 3 released with full Html5 Tag API

Written By iJungleboy
2019-10-21

RazorBlade 3 is out, and it has a full Html5 Tag API with many smart features like automatic url fixing, AddBase and more.

Awesome Html5 API

RazorBlade 3 has more than 130 new objects and hundreds of properties to generate perfect HTML5 tags. And it's smart. For example:

@Tag.Img().Src("bäd.png").Class("full-width").Class("lightbox")

Would generate a clean

<img src="b%e4d.png" class="full-width lightbox">

So it handles things like url-encoding, attribute concatenation and more - ensuring you don't f***-up any more 😉.

Awesome HtmlPage API

The HtmlPage was massively enhanced with command like

  • AddBase() to add the correct DNN base tag to the header. It even works on the home page, which usually causes a lot of problems with SPAs on DNN home pages
  • AddIcon(...) to add icon headers
  • AddIconSet(...) to add a set of best practice icon headers

Awesome Documentation & Tutorials

  1. RazorBlade got an own website razor-blade.net, which has a complete API documentation. This should help you really leverage it's features.
  2. We also updated our tutorials to show you what you can do with it. 
  3. We're building a list of recipes on azing for all kinds of common activities
  4. We'll also publish a special tutorial just for FavIcons, because everybody gets this wrong ♥

What's Next

We'll include RazorBlade 3 in the next 2sxc 10.09, and then also release it as a NuGet package, to simplify integration into your solutions. 

Get and Enjoy

You can either wait for 2sxc 10.09 (coming up in a few days) or just download and install it from Github

Love from Switzerland,
iJungleboy

 

Daniel Mettler grew up in the jungles of Indonesia and is founder and CEO of 2sic internet solutions in Switzerland and Liechtenstein, an 20-head web specialist with over 800 DNN projects since 1999. He is also chief architect of 2sxc (see github), an open source module for creating attractive content and DNN Apps.



Read more posts by Daniel Mettler
Total: 0 Comment(s)

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved