2using System.Collections.Generic;
20 private static readonly List<BadHtmlNodeTransformer>
s_Transformers =
new List<BadHtmlNodeTransformer>
56 foreach (HtmlAttribute attribute
in context.InputNode.Attributes)
59 string value = attribute.Value;
62 value = value.Replace(
"\n",
" ").Replace(
"\r",
" ");
66 context.ParseAndExecute(
"$\"" + value +
"\";", context.CreateAttributePosition(attribute));
69 outputNode.Attributes[attribute.Name].Value = result.
ToString();
92 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.