Class YamlEngine

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String JBAKE_PREFIX  
    • Constructor Summary

      Constructors 
      Constructor Description
      YamlEngine()  
    • Constructor Detail

      • YamlEngine

        public YamlEngine()
    • Method Detail

      • parse

        public DocumentModel parse​(JBakeConfiguration config,
                                   java.io.File file)
        Description copied from class: MarkupEngine
        Parse given file to extract as much infos as possible
        Specified by:
        parse in interface ParserEngine
        Overrides:
        parse in class MarkupEngine
        Parameters:
        config - The project configuration
        file - file to process
        Returns:
        a map containing all infos. Returning null indicates an error, even if an exception would be better.
      • processHeader

        public void processHeader​(ParserContext context)
        This method implements the contract allowing use of Yaml files as content files
        Overrides:
        processHeader in class MarkupEngine
        Parameters:
        context - the parser context
      • processBody

        public void processBody​(ParserContext context)
        This method implements the contract allowing use of Yaml files as content files. As such there is no body for Yaml files so this method just sets an empty String as the body.
        Overrides:
        processBody in class MarkupEngine
        Parameters:
        context - the parser context