public final class HtmlCompiler extends Object
| Constructor and Description |
|---|
HtmlCompiler(Logger log,
File inputDir,
Map<String,Object> context) |
| Modifier and Type | Method and Description |
|---|---|
String |
compileHtmlCode(File file,
String content) |
String |
compileHtmlFile(File file) |
String |
compressHtmlCode(String content) |
String |
compressHtmlFile(File input) |
String |
compressHtmlFile(String filename) |
Document |
htmlToDocument(String html) |
static Map<String,Object> |
newDefaultTemplateContext() |
static Map<String,Object> |
newDefaultTemplateContext(org.apache.maven.project.MavenProject project) |
Document |
processHtml(File file,
Document document) |
String |
toHtml(Node node) |
public static Map<String,Object> newDefaultTemplateContext(org.apache.maven.project.MavenProject project)
public String compressHtmlFile(File input) throws IOException
IOExceptionpublic String compressHtmlFile(String filename) throws IOException
IOExceptionpublic String compileHtmlCode(File file, String content) throws Exception
Exceptionpublic Document processHtml(File file, Document document) throws Exception
Exceptionpublic Document htmlToDocument(String html) throws IOException, SAXException
IOExceptionSAXExceptionpublic String toHtml(Node node) throws TransformerException, IOException
TransformerExceptionIOExceptionCopyright © 2019. All rights reserved.