package mustache
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
On This Page
  
  
  Mustache logic-less templates in OCaml
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
  
    
      v3.1.0.zip
    
    
        
    
  
  
  
    
  
  
    
  
        sha256=8b0a04af0cb897fdba41fd946fa1b6cdb3982ca0db604e13ee0977585ff4c45d
    
    
  md5=ee15623d0f699b6aff31904fedf4945e
    
    
  doc/README.html
ocaml-mustache
mustache.js logic-less templates in OCaml
Example usage
let tmpl =
  Mustache.of_string "Hello {{name}}\n\
                      Mustache is:\n\
                      {{#qualities}}\
                      * {{name}}\n\
                      {{/qualities}}"
let json =
  `O [ "name", `String "OCaml"
     ; "qualities", `A [ `O ["name", `String "awesome"]
                       ; `O ["name", `String "simple"]
                       ; `O ["name", `String "fun"]
                       ]
     ]
let rendered =
  Mustache.render tmpl jsonSpec compliance
ocaml-mustache complies¹ to the latest mustache specification, and is automatically tested against it.
¹: except for lambdas and set delimiters tags.
Todo/Wish List
- Support for ropes
http://mustache.github.io/
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
  On This Page