Page
Library
Module
Module type
Parameter
Class
Class type
Source
Yocaml_jingoo
SourcePlugin for describing templates using Jingoo, a template engine inspired by Jinja2 (from the Python world).
Description of a pipeline for reading a template and injecting content.
val read_template :
?snapshot:bool ->
?strict:bool ->
Yocaml.Path.t ->
(unit,
(module Yocaml.Required.DATA_INJECTABLE with type t = 'a) ->
metadata:'a ->
string ->
string)
Yocaml.Task.t
Return a function that apply ~metadata
and ~content
to a given template. Made the usage with applicative easier.
val read_templates :
?snapshot:bool ->
?strict:bool ->
Yocaml.Path.t list ->
(unit,
(module Yocaml.Required.DATA_INJECTABLE with type t = 'a) ->
metadata:'a ->
string ->
string)
Yocaml.Task.t
Return a function that apply ~metadata
and ~content
to a list of templates (in sequential order). Made the usage with applicative easier.
Describes the arrowized interface for reading a file as a template and injecting content and variables.
Describes the Yocaml_jingoo
module as a template engine. Allows the latter to be passed to any function requiring it.
The type that describes the template language.
from data
Transforms a normalized data representation (data
) into an associative list of data that can be injected into a template.