org.jbake.parser.ParserEngine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbake-core Show documentation
Show all versions of jbake-core Show documentation
JBake is a Java based open source static site/blog generator for developers.
package org.jbake.parser;
import org.apache.commons.configuration2.Configuration;
import org.jbake.app.configuration.JBakeConfiguration;
import org.jbake.model.DocumentModel;
import java.io.File;
import java.util.Map;
public interface ParserEngine {
/**
* Parse a given file and transform to a model representation used by {@link MarkdownEngine} implementations
* to render the file content.
*
* @param config The project configuration
* @param file The file to be parsed
* @return A model representation of the given file
*/
DocumentModel parse(JBakeConfiguration config, File file);
/**
* @param config The project configuration
* @param file The file to be parsed
* @param contentPath unknown
* @return A model representation of the given file
* @deprecated use {@link #parse(JBakeConfiguration, File)} instead
*/
@Deprecated
Map parse(Configuration config, File file, String contentPath);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy