This project is read-only.

Version 1.0

Rating: No reviews yet
Downloads: 61
Released: May 4, 2011
Updated: May 4, 2011 by zhong_zhaofeng
Dev status: Stable Help Icon

Recommended Download

Application Orchard.Module.RaisingStudio.Razor.1.0.nupkg
application, 45K, uploaded May 4, 2011 - 37 downloads

Other Available Downloads

Source Code RaisingStudio.Razor.zip
source code, 14K, uploaded May 4, 2011 - 24 downloads

Release Notes

Display Razor view in Orchard.
Orchard (http://orchard.codeplex.com/)
RazorEngine (http://razorengine.codeplex.com/)

Sample:

@{
 var userid = 0;
 var username = string.Empty;
 if(Model.Services.WorkContext.CurrentUser != null)
 {
  userid = Model.Services.WorkContext.CurrentUser.Id;
  username = Model.Services.WorkContext.CurrentUser.UserName;
 }
}
Hello <a href="/OrchardLocal/Admin/Users/Edit/@userid">@username</a>

Reviews for this release

No reviews yet for this release.