Esempio n. 1
0
        /// <summary>
        /// Bubble classes and ID to top level
        /// </summary>
        public static void Bubble(HtmlData data, Options options)
        {
            var sm = new SelectorBubbler(data);

            if (options.BubbleClass)
                sm.BubbleClasses(data);

            if (options.BubbleID)
                sm.BubbleID(data);
        }
Esempio n. 2
0
        public void WriteFragment(string ns, HtmlData data)
        {
            if (ns == "")
                Bracket("namespace " + options.Namespace);
            else
                Bracket("namespace " + options.Namespace + "." + ns);

            WriteLine("[JsType(JsMode.Json)]");
            Bracket((options.AccessInternal ? "internal" : "public") + " partial class " + data.FragmentName);
            //WriteLine("public const string StateName = \"" + Path.GetFileNameWithoutExtension(data.FileName) + "\";");
            if (options.GenerateFilenameProperties)
                WriteLine("public const string FileName = \"" + data.FileName + "\";");

            WriteElements("", "", data);

            EndBracket(); //class
            EndBracket(); //namespace
        }
Esempio n. 3
0
 SelectorBubbler(HtmlData data)
 {
     this.data = data;
 }