Esempio n. 1
0
 public Tree(StringTemplate stringTemplate)
 {
     Root = new Item("Not used", "");
     _currentLevel = DEFAULT_LEVEL_ZERO_BASED;
     _currentItem = Root;
     _stringTemplate = stringTemplate;
     _titleIdLookup = new List<string>();
 }
Esempio n. 2
0
		public TocParser()
		{
			_template = new StringTemplate()
			{
				ItemStart = "<li>",
				ItemFormat = @"<a href=""#{id}"">{levels}{itemnumber}&nbsp;{title}</a>",
				ItemEnd = "</li>",
				LevelStart = "<ul>",
				LevelEnd = "</ul>"
			};
		}