Jade.Parser.Nodes.TagNode.Attributes C# (CSharp) Method

Attributes() private method

private Attributes ( JadeModel model, JadeTemplate template ) : String
model JadeModel
template JadeTemplate
return String
        private String Attributes(JadeModel model, JadeTemplate template)
        {
            StringBuilder sb = new StringBuilder();

            Dictionary<String, Object> mergedAttributes = mergeInheritedAttributes(model);

            foreach (var entry in mergedAttributes)
            {
                try
                {
                    sb.Append(getAttributeString(entry.Key, entry.Value, model, template));
                }
                catch (ExpressionException e)
                {
                    throw new JadeCompilerException(this, template.getTemplateLoader(), e);
                }
            }

            return sb.ToString();
        }