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

getInterpolatedAttributeValue() private method

private getInterpolatedAttributeValue ( String name, Object attribute, JadeModel model, JadeTemplate template ) : String
name String
attribute Object
model JadeModel
template JadeTemplate
return String
        private String getInterpolatedAttributeValue(String name, Object attribute, JadeModel model, JadeTemplate template)
        {
            if (!preparedAttributeValues.ContainsKey(name))
            {
                preparedAttributeValues.Add(name, Utils.prepareInterpolate((String)attribute, true));
            }
            List<Object> prepared = preparedAttributeValues[name];
            try
            {
                return Utils.interpolate(prepared, model);
            }
            catch (ExpressionException e)
            {
                throw new JadeCompilerException(this, template.getTemplateLoader(), e);
            }
        }