Copyright | (c) Justus Sagemüller 2017 |
---|---|
License | GPL v3 |
Maintainer | (@) jsagemue $ uni-koeln.de |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
- type Presentation = IPresentation IO ()
- yeamer :: Presentation -> IO ()
- staticContent :: Monoid r => Html -> IPresentation m r
- tweakContent :: Sessionable r => (Html -> Html) -> IPresentation m r -> IPresentation m r
- serverSide :: Sessionable a => m a -> IPresentation m a
- ($<>) :: (r ~ (), SymbolClass σ, SCConstraint σ LaTeX) => CAS (Infix LaTeX) (Encapsulation LaTeX) (SymbolD σ LaTeX) -> IPresentation m r -> IPresentation m r
- maths :: (r ~ (), SymbolClass σ, SCConstraint σ LaTeX) => [[CAS (Infix LaTeX) (Encapsulation LaTeX) (SymbolD σ LaTeX)]] -> String -> IPresentation m r
- imageFromFile :: FilePath -> IPresentation IO ()
- mediaFromFile :: FilePath -> IPresentation IO ()
- imageFromFileSupplier :: String -> (FilePath -> IO ()) -> IPresentation IO ()
- useFile :: FilePath -> (Url -> Html) -> IPresentation IO ()
- useFileSupplier :: String -> (FilePath -> IO ()) -> (Url -> Html) -> IPresentation IO ()
- verbatim :: QuasiQuoter
- plaintext :: QuasiQuoter
- verbatimWithin :: Name -> QuasiQuoter
- addHeading :: Sessionable r => Html -> IPresentation m r -> IPresentation m r
- (======) :: Sessionable r => Html -> IPresentation m r -> IPresentation m r
- discardResult :: IPresentation m r -> IPresentation m ()
- module Data.Monoid
- module Data.Semigroup.Numbered
- divClass :: Sessionable r => Text -> IPresentation m r -> IPresentation m r
- divClasses :: Sessionable r => [(Text, IPresentation m r)] -> IPresentation m r
- spanClass :: Sessionable r => Text -> IPresentation m r -> IPresentation m r
- (#%) :: Sessionable r => Text -> IPresentation m r -> IPresentation m r
- styling :: Css -> IPresentation m r -> IPresentation m r
- data Css :: *
- yeamer' :: YeamerServerConfig -> Presentation -> IO ()
- data YeamerServerConfig
- yeamerTcpPort :: Lens' YeamerServerConfig Int
Documentation
type Presentation = IPresentation IO () Source #
Running a presentation
yeamer :: Presentation -> IO () Source #
Primitives
staticContent :: Monoid r => Html -> IPresentation m r Source #
tweakContent :: Sessionable r => (Html -> Html) -> IPresentation m r -> IPresentation m r Source #
serverSide :: Sessionable a => m a -> IPresentation m a Source #
Maths
($<>) :: (r ~ (), SymbolClass σ, SCConstraint σ LaTeX) => CAS (Infix LaTeX) (Encapsulation LaTeX) (SymbolD σ LaTeX) -> IPresentation m r -> IPresentation m r infixr 6 Source #
maths :: (r ~ (), SymbolClass σ, SCConstraint σ LaTeX) => [[CAS (Infix LaTeX) (Encapsulation LaTeX) (SymbolD σ LaTeX)]] -> String -> IPresentation m r Source #
Media content
imageFromFile :: FilePath -> IPresentation IO () Source #
mediaFromFile :: FilePath -> IPresentation IO () Source #
More general form of imageFromFile
. Takes a guess based on the file
extension, as to whether the media is a standing image or a video. In the
latter case, simple HTML5 controls are added.
imageFromFileSupplier Source #
Display an image generated on-the-fly in the server. The image will be stored temporarily, in a content-indexed fashion.
Arbitrary file serving
Code / plaintext
:: QuasiQuoter | ≈ |
:: QuasiQuoter | ≈ |
:: Name | A function |
-> QuasiQuoter | A specialised version of |
Convenience wrapper to generate quasi-quoters that will wrap code in any suitable HTML environment.
Structure / composition
addHeading :: Sessionable r => Html -> IPresentation m r -> IPresentation m r Source #
(======) :: Sessionable r => Html -> IPresentation m r -> IPresentation m r infixr 6 Source #
Infix synonym of addHeading
. Intended to be used
in do
blocks, for headings of presentation slides.
discardResult :: IPresentation m r -> IPresentation m () Source #
module Data.Monoid
module Data.Semigroup.Numbered
CSS
divClasses :: Sessionable r => [(Text, IPresentation m r)] -> IPresentation m r Source #
ToTypedContent Css | |
HasContentType Css | |
ToContent Css | |
ToWidgetHead site Css | |
ToWidgetMedia site Css | |
ToWidget site Css | |
(~) * render (RY site) => ToWidgetHead site (render -> Css) | |
(~) * render (RY site) => ToWidgetMedia site (render -> Css) | |
(~) * render (RY site) => ToWidget site (render -> Css) | |
Server configuration
yeamer' :: YeamerServerConfig -> Presentation -> IO () Source #
Default port is 14910