1 package gboat2.base.view.sitemesh3; 2 3 import org.sitemesh.SiteMeshContext; 4 import org.sitemesh.content.ContentProperty; 5 import org.sitemesh.content.tagrules.TagRuleBundle; 6 import org.sitemesh.content.tagrules.html.ExportTagToContentRule; 7 import org.sitemesh.tagprocessor.State; 8 9 public class ExtHtmlTagRuleBundle implements TagRuleBundle { 10 11 @Override 12 public void install(State defaultState, ContentProperty contentProperty, 13 SiteMeshContext siteMeshContext) { 14 defaultState.addRule("g2navbar", new ExportTagToContentRule(contentProperty.getChild("g2navbar"), false)); 15 defaultState.addRule("g2sidebar", new ExportTagToContentRule(contentProperty.getChild("g2sidebar"), false)); 16 17 } 18 19 @Override 20 public void cleanUp(State defaultState, ContentProperty contentProperty, 21 SiteMeshContext siteMeshContext) { 22 23 } 24 }