#2811 [ANN] Fanbars: "Semi" logic-less templates

andy Fri 7 Aug 2020


"Semi" logic-less templates for Fantom inspired by Mustache.

Fanbars can be used for HTML, config files, source code — anything. It works by expanding tags in a template using values provided in a Map.

{{#if isLoggedIn}}
  Hello, {{username}}!
  {{#each item in cart}}
    <li>{{item.name}} ${{item.price}}</li>

Still a bit rough around the edges — but now in production use — GitHub and Eggbox links below:



Login or Signup to reply.