In package com.eden.orchid.api.compilers

class com.eden.orchid.api.compilers.OrchidPrecompiler

The precompiler is a compiler to be run against files before they are sent to their appropriate OrchidCompiler. Generally, this is used to extract data embedded within the file, returning the extracted data and the content after it has had its embedded data removed so that the resulting content can be compiled with special options specific to that file.

Constructors

public <init>(kotlin.Int)

Initialize the OrchidPrecompiler with a set priority. Currently does nothing but is in place to allow for implementation to be chosen at runtime.

Parameters:
  • priority: Int

Methods

public abstract getEmbeddedData(kotlin.String, kotlin.String): EdenPair

Extract the data embedded within some given content, returning the data that was extracted as well as the content after the embedded data has been removed.

Parameters:
  • extension: String
  • input: String
public abstract shouldPrecompile(kotlin.String, kotlin.String): Boolean

Evaluate a given input String to determine whether it should be precompiled with this OrchidPrecompiler or not.

Parameters:
  • extension: String
  • input: String