Module: Yarrow::Config

Defined in:
lib/yarrow/config.rb

Defined Under Namespace

Classes: Content, Instance, Meta, Output, OutputGenerator, OutputManifest, OutputReconcile

Constant Summary collapse

Server =

Dev server config. This is mainly useful if you want to set up a specific chain of Rack middleware and handlers. If you don’t care about default directory indexes or port handling, you can completely ignore this.

There are many better live reloading options available in JS, so the Rack infrastructure here should be ignored for UI-heavy jobs. It’s otherwise fine for slower-paced general purpose web publishing.

The default index config could possibly move into a dedicated namespace in future if it makes sense to use the underlying graph infrastructure as a live lookup rather than a compiler-generated artifact. This would mean rather than doing a ls on the directory, the index pages would grab a list of entries out of a graph projection for the directory.

Yarrow::Schema::Value.new(
  :live_reload,
  :auto_index,
  :default_index,
  :default_type,
  :port,
  :host,
  :handler,
  :middleware
)