package com.lntusl.core.web.parser;

import com.opensymphony.module.sitemesh.html.State;
import com.opensymphony.module.sitemesh.html.StateTransitionRule;
import com.opensymphony.module.sitemesh.html.rules.PageBuilder;
import com.opensymphony.module.sitemesh.parser.HTMLPageParser;

public class CustomPageParser extends HTMLPageParser {

	@Override
	protected void addUserDefinedRules(State html, PageBuilder page) {
		super.addUserDefinedRules(html, page);
		// Ensure that while in <textarea> tag, none of the other rules kick in.
		State textarea = new State();
		html.addRule(new StateTransitionRule("textarea", textarea));

	}

}
