private Parser createParser(String templateName) { templateName = ensureJadeExtension(templateName); try { return new Parser(pathHelper.resolvePath(filename,templateName, basePath, templateLoader.getExtension()), basePath, templateLoader, expressionHandler); } catch (IOException e) { throw new JadeParserException(filename, lexer.getLineno(), templateLoader, "the template [" + templateName + "] could not be opened\n" + e.getMessage()); } }
Include includeToken = (Include) token; String templateName = includeToken.getValue().trim(); String path = pathHelper.resolvePath(filename,templateName,basePath,templateLoader.getExtension());
private Parser createParser(String templateName) { templateName = ensureJadeExtension(templateName); try { return new Parser(pathHelper.resolvePath(filename,templateName, basePath, templateLoader.getExtension()), basePath, templateLoader, expressionHandler); } catch (IOException e) { throw new JadeParserException(filename, lexer.getLineno(), templateLoader, "the template [" + templateName + "] could not be opened\n" + e.getMessage()); } }
Include includeToken = (Include) token; String templateName = includeToken.getValue().trim(); String path = pathHelper.resolvePath(filename,templateName,basePath,templateLoader.getExtension());