In package com.eden.orchid.api.resources.resource

class com.eden.orchid.api.resources.resource.FileResource

A Resource type that provides a content to a template from a resource file on disk. When used with renderTemplate() or renderString(), this resource will supply the page.content variable to the template renderer as the file contents after having the embedded data removed, and any embedded data will be available in the renderer through the page variable. When used with renderRaw(), the raw contents (after having the embedded data removed) will be written directly instead.

Constructors

public <init>(com.eden.orchid.api.OrchidContext, java.io.File)

Parameters:
public <init>(java.io.File, com.eden.orchid.api.theme.pages.OrchidReference)

Parameters:

Methods

public final update(java.io.InputStream): Unit

Parameters:
  • newContent:
public final delete(): Unit

Parameters:
  • No parameters
public final getContentStream():

Parameters:
  • No parameters
public final canUpdate(): Boolean

Parameters:
  • No parameters
public final canDelete(): Boolean

Parameters:
  • No parameters