Need help implementing an Orchard CMS Shape Method
问题 I am just learning Orchard CMS and am having trouble implementing a shape method to return some arbitrary text without creating a whole set of model, driver, etc. I am trying to use the code at http://docs.orchardproject.net/Documentation/Accessing-and-rendering-shapes public class DateTimeShapes : IDependency { private readonly IClock _clock; public DateTimeShapes(IClock clock) { _clock = clock; T = NullLocalizer.Instance; } public Localizer T { get; set; } [Shape] public IHtmlString