Module

Mustache

Package
purescript-mustache
Repository
svisser/purescript-mustache

#Template Source

#Tag Source

type Tag = String

#Partials Source

#TokenElement Source

#MustacheEffect Source

data MustacheEffect :: Effect

Effect that represents side effects within mustache.js.

This is used to indicate interactions with the cache in mustache.js.

#name Source

name :: String

Name of the mustache.js dependency ("mustache.js").

#version Source

version :: String

Version string as specified in mustache.js.

#tags Source

tags :: Array Tag

Default mustache.js tags (default: array with "{{" and "}}").

#parse Source

parse :: forall e. Template -> Array Tag -> Eff (mustache :: MustacheEffect | e) (Array Token)

Precompile a template and write parsed tokens to a cache within mustache.js.

#render Source

render :: forall e. Template -> View -> Partials -> Eff (mustache :: MustacheEffect | e) String

Render the template with the given view and partial templates.

#escape Source

escape :: String -> String

Escape various characters as HTML entities in the given string.

#clearCache Source

clearCache :: forall e. Eff (mustache :: MustacheEffect | e) Unit

Clear the internal cache used by mustache.js.

Modules
Mustache