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

andy Fri 7 Aug

fanbars-logo

"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}}!
  <ul>
  {{#each item in cart}}
    <li>{{item.name}} ${{item.price}}</li>
  {{/each}}
  </ul>
{{/if}}

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

https://github.com/afrankvt/fanbars

http://eggbox.fantomfactory.org/pods/fanbars

Login or Signup to reply.