public IClientModel Evaluate(IClientContext context, IClientModel model, string name, IDictionary<string, string> parameters) { var key = parameters.Keys.First().Trim('"'); var builder = new StringBuilder(); using (var writer = new StringWriter(builder)) { _handler.RenderLabel(key, new RenderingContext(writer)); } context.WriteLiteral(builder.ToString()); return model; }
public IClientModel Evaluate(IClientContext context, IClientModel model, string name, IDictionary <string, string> parameters) { var key = parameters.Keys.First().Trim('"'); var builder = new StringBuilder(); using (var writer = new StringWriter(builder)) { _handler.RenderLabel(key, new RenderingContext(writer)); } context.WriteLiteral(builder.ToString()); return(model); }
public void WriteLiteral(string content) { _adaptee.WriteLiteral(content); }
public IClientModel Evaluate(IClientContext context, IClientModel model, string name, IDictionary<string, string> parameters) { context.WriteLiteral(context.TemplateId); return model; }
public IClientModel Evaluate(IClientContext context, IClientModel model, string name, IDictionary <string, string> parameters) { context.WriteLiteral(context.TemplateId); return(model); }
protected override IClientModel VisitWriteLiteralNode(WriteLiteralNode writeLiteralNode) { _clientContext.WriteLiteral(writeLiteralNode.LiteralContent); return(base.VisitWriteLiteralNode(writeLiteralNode)); }