All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbake.parser.ParserEngine Maven / Gradle / Ivy

Go to download

JBake is a Java based open source static site/blog generator for developers.

There is a newer version: 2.7.0-rc.7
Show newest version
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