package yocaml_jingoo

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

Install

Dune Dependency

Authors

Maintainers

Sources

yocaml-2.0.1.tbz
sha256=cde46c80549a7d585281fcfd1ac30e9fc04137f48512744bc6fcbde449cf265c
sha512=ca8eaa42c6edee34e433093e18a8b66e4cf3b937f5c65c0eb50a53cc59fea260b9929ce25231fe60dafb69d469bde474ae86450addc9e6844031329ff28c7e7e

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.

OCaml

Innovation. Community. Security.