package yocaml_mustache

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

yocaml-2.4.1.tbz
sha256=cfc7c139116d6881b1d0bc7af706b8f8ceb6cd1f5be67d621944388731ab9d6c
sha512=9d1a075a6a9d3c8bae9ae4e389ada0a5b7818b3993ef9dd45af65070434b86bb56c349db5d0149134d449495415c28e2bfca993a20d5e4b7d16263f7231334c3

doc/yocaml_mustache/Yocaml_mustache/index.html

Module Yocaml_mustacheSource

Plugin for describing templates using ocaml-mustache, an implementation of the logic-less templating engine Mustache.

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_mustache 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.