With Webmatrix 2.0 Beta, and then there is an extension environment for adding โExtensionsโ. The API is pretty straightforward at present, but it looks like you can create any arbitrary managed code and include it in your constructor, where you inherit the Microsoft.WebMatrix.Extensibility.IExtension interface.
Here is a snippet to help you get started with my simple extension:
[Export(typeof(IExtension))]
public class UmbracoExtension : IExtension
{
public IEnumerable<IDashboardItem> DashboardItems
{
get { return null; }
}
public string Name
{
get { return "Extension"; }
}
public string Version
{
get { return "1.0"; }
}
private IRibbonGroup _ribbonGroup;
private IWebMatrixHost _webMatrixHost;
private List<IRibbonItem> _ribbonItems;
public IEnumerable<IRibbonItem> RibbonItems
{
...
}
[Import(typeof(IWebMatrixHost))]
private IWebMatrixHost WebMatrixHost
{
...
}
-Paul
source
share