package yocaml

  1. Overview
  2. Docs
Core engine of the YOCaml Static Site Generator

Install

dune-project
 Dependency

Authors

Maintainers

Sources

yocaml-2.0.0.tbz
sha256=fddf61500e828ac88d86ba982084cc817299302082a6e797b36787ff18235ec2
sha512=8b71a8cecd3e101df55eef0bba7a24d4dde9d66b5ecedd9f6d55834fcdc8d33fd875092ca73a398e1715664caee06cdc1bdb1b4da85bff0a687faac5c0445023

doc/yocaml/Yocaml/Task/Static/index.html

Module Task.StaticSource

Utilities for dealing with tasks without dynamic dependencies.

Sourceval on_content : ('content_in, 'content_out) t -> ('meta * 'content_in, 'meta * 'content_out) t

on_content arr lift an arrow to deal only with the content of a task.

Sourceval on_metadata : ('meta_in, 'meta_out) t -> ('meta_in * 'content, 'meta_out * 'content) t

on_metadata arr lift an arrow to deal only with the associated metadata of a task.

Sourceval keep_content : unit -> ('meta * 'content, 'content) t

keep_content () drop the metadata part of the computed task.

Sourceval empty_body : unit -> ('meta, 'meta * string) t

empty_body () attach an empty body (an empty string) to a task.