pod afBedSheetEfanExtra

(deprecated) Project has been renamed to 'afPillow'

Mixins

EfanPageMeta

(Service) - Holds info about the current rendering page.

Page

Your web pages should extend this!

Classes

BedSheetEfanExtraModule

The afIoc module class.

EfanPageMetaImpl
Pages

(Service) - Holds a collection of known pages.

Facets

PageRoute

Errs

BedSheetEfanExtraErr

As thrown by BedSheetEfanExtra.

Overview

(deprecated) This project has been renamed to: afPillow. Please use this instead.

A library for integrating efanXtra components with the afBedSheet web framework.

afBedSheetEfanExtra automatically routes web requests to pages and returns the rendered response.

Quick Start

Awesome.fan:

using afBedSheetEfanExtra::Page

const mixin Awesome : Page { }

Awesome.efan:

Look ma, I'm Awesome!

Start your web app and instantly see the result:

$ curl localhost:8080/awesome
Look ma, I'm Awesome!

Usage

Pages are efanXtra components and so behave in exactly the same way. Ensure your page classes are const mixins and extend the Page class.

Page names may optionaly have a Page suffix, so both of the following classes are routed to /index:

Index.fan     --> /index
IndexPage.fan --> /index

Camel casing class names results in a / delimiter. Examples:

Index.fan      --> /index
AdminIndex.fan --> /admin/index

Release Notes

v0.0.4

  • New: Added @PageRoute facet that lets you specify a bespoke uri
  • New: Added EfanPageMeta which returns the active rendering page.

v0.0.2

  • New: Preview Release