| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Rib.App
Description
CLI interface for Rib.
Mostly you would only need run, passing it your Shake build action.
Documentation
Application modes
The mode in which to run the Rib CLI
Constructors
| Generate | Generate static files once. |
| WatchAndGenerate | Watch for changes in the input directory and run |
| Serve | Run a HTTP server serving content from the output directory |
Fields
| |
Instances
| Eq App Source # | |
| Data App Source # | |
Defined in Rib.App Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> App -> c App # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c App # dataTypeOf :: App -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c App) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c App) # gmapT :: (forall b. Data b => b -> b) -> App -> App # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> App -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> App -> r # gmapQ :: (forall d. Data d => d -> u) -> App -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> App -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> App -> m App # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> App -> m App # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> App -> m App # | |
| Show App Source # | |
Arguments
| :: Path Rel Dir | Directory from which source content will be read. |
| -> Path Rel Dir | The path where static files will be generated. Rib's server uses this directory when serving files. |
| -> Action () | Shake build rules for building the static site |
| -> IO () |
Run Rib using arguments passed in the command line.