RazorEngine v2.1

Rating:        Based on 7 ratings
Reviewed:  6 reviews
Downloads: 21555
Change Set: 6690
Released: Jan 22, 2011
Updated: Jan 22, 2011 by AntarisZX
Dev status: Stable Help Icon

Recommended Download

Application RazorEngine v2.1 Core
application, 86K, uploaded Jan 22, 2011 - 17073 downloads

Other Available Downloads

Application RazorEngine v2.1 Web (For Medium Trust)
application, 5K, uploaded Jan 22, 2011 - 1525 downloads
Application RazorEngine v2.1 Source
application, 374K, uploaded Jan 22, 2011 - 2957 downloads

Release Notes

  • Support for DynamicObject and ExpandoObject for models.

  • Changed how the Microsoft.CSharp assembly is referenced in dynamically compiled assemblies by added a stub reference type.

  • Corrected reference to TemplateWriter when expressing inline-helpers in templates.
  • Re-added missing RequireNamespacesAttribute for declaring required namespace imports for custom templates.

Reviews for this release

Razor is awesome. I used to have a hard to maintain HTML and token replacement system for generating documents. Razor is so much better, and after getting passed a few hic-ups, I now have a robust, maintainable and highly customisable document generation system.
by retroburst on Sep 1, 2011 at 1:30 AM
I found this to be an excellent library for producing data driven HTML. Had it not been for this then I would have to resort to messy token replacement. Razor script makes it possible for you to place some light weight logic in the markup. e.g. Display total count of orders in the footer. e.g. Render a table cell as per status of the Task object.
by harappa on Mar 11, 2016 at 8:44 AM
Works great. Simple straight forward and effective, everything a person can want in a library. Thanks! I did have a question though, would you happen to know if it's possible to use master pages, I tried but the Layout or LayoutPage properties don't seem to exist. Just curious.
by luisperezphd on Apr 4, 2012 at 5:25 PM
Works really nice (testing it in an desktop application to generate reports). One thing needs urgent attention: get decent error messages pointing to the origin of a bug in the template and NOT in the generated code (that is not even available). It just makes debugging hard (and i used it with some very complex foreach statement).
by wvd_vegt on Jul 30, 2011 at 5:30 PM
Very cool. I spent the past week looking at examples that either used classes that were removed from MVC3 RTM or were so convoluted that they were damn near illiterate. This works as advertised and appears to be very stable. Update:two months later, used about 40k times per day, no bugs. Best money I ever spent. =)
by techvette on Apr 26, 2011 at 5:59 AM
Fantastic framework, looks like it will be really useful and quick to set up for server-side templating
by Paul_Hadfield on Feb 5, 2011 at 11:55 AM