public void testBlockExist() { string html = "<div>#{title}<br/>#{body}<!-- BEGIN mylist --><p>kkkk</p><!-- END mylist --></div>"; wojilu.Web.ITemplate tpl = new Template().InitContent( html ); Assert.IsFalse( tpl.HasBlock( "list" ) ); Assert.IsTrue( tpl.HasBlock( "mylist" ) ); }