public TemplateTokenizer(IContext context) {
ctx = context;
RythmEngine engine = ctx.getEngine();
RythmConfiguration conf = engine.conf();
if ((conf.smartEscapeEnabled() || conf.naturalTemplateEnabled()) && engine.extensionManager().hasTemplateLangs()) {
parsers.add(new CodeTypeBlockStartSensor(ctx));
parsers.add(new CodeTypeBlockEndSensor(ctx));
}
if (conf.naturalTemplateEnabled() && engine.extensionManager().hasTemplateLangs()) {
parsers.add(new DirectiveCommentStartSensor(ctx));