package yocaml_jingoo

  1. Overview
  2. Docs
Yocaml plugin for using Jingoo as a template language

Install

dune-project
 Dependency

Authors

Maintainers

Sources

yocaml-2.2.0.tbz
sha256=967db87e63b7da8c3f127df5461eb86d0da9d41ef20e1957beacec9df5ec760c
sha512=930d98d22f19232b498a399e86c88a8ec87d49886eaeb1c296ff48b6d7f1da6c420c53472028410ef83d1914e8268924636353378b5e99bf0e93783769519c9f

doc/yocaml_jingoo/Yocaml_jingoo/index.html

Module Yocaml_jingooSource

Plugin for describing templates using Jingoo, a template engine inspired by Jinja2 (from the Python world).

Injection

Description of a pipeline for reading a template and injecting content.

Sourcemodule Pipeline : sig ... end

Describes the arrowized interface for reading a file as a template and injecting content and variables.

Data template

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.

Sourceval from : Yocaml.Data.t -> t

from data Transforms a normalized data representation (data) into an associative list of data that can be injected into a template.

Sourceval render : ?strict:bool -> (string * t) list -> string -> string

render ?strict parameters content injects parameters data into content and returns the result of the applied content. To inject metadata into a template.