IService.AddStlElementParser method
添加STL元素解析器。
public IService AddStlElementParser(string elementName, Func<IParseContext, string> parse)
parameter | description |
---|---|
elementName | STL元素名称。 |
parse | STL元素解析方法,可以根据第一个参数IParseContext(STL解析上下文)计算并返回解析后的Html。 |
Return Value
返回插件服务注册实例。
See Also
- interface IParseContext
- interface IService
- namespace SiteServer.Plugin