2using System.Collections.Generic;
20 private static readonly List<BadHtmlNodeTransformer>
s_Transformers =
new List<BadHtmlNodeTransformer>
57 foreach (HtmlAttribute attribute
in context.InputNode.Attributes)
60 string value = attribute.Value;
63 value = value.Replace(
"\n",
" ")
68 context.ParseAndExecute(
"$\"" + value +
"\";", context.CreateAttributePosition(attribute));
71 outputNode.Attributes[attribute.Name].Value = result.
ToString();
94 throw new InvalidOperationException(
"No transformer found");
Implements the Html Context for the Transformation Process.
Implements a BadScript Text Node Transformer Copies the text nodes to the output and evaluates them w...
The Base Class for all BadScript Objects.
override string ToString()
Returns a String Representation of this Object.
A Html Template Generator based on BadScript2.
Contains the Runtime Objects.