BedSheetMoustache 1.0.6
A library for integrating Mustache templates with the afBedSheet web framework

BedSheetMoustache is a Fantom library that integrates Mustache templates with the BedSheet web framework.

It provides a cache for your compiled Mustache templates and throws MoustacheErrs to show details of compilation failures.

Example:

Moustache Compilation Err:
  file:/C:/Projects/Fantom/BedSheetMoustache/test/app/compilationErr.moustache : Line 11
    - Unbalanced "{" in tag "{ alienHeadSvg }  <span class="brand">{{ title"

     6:         {{{ bedSheetCss }}}
     7:     </style>
     8: </head>
     9: <body>
    10:     <header>
==> 11:         {{{ alienHeadSvg }
    12:         <span class="brand">{{ title }}</span>
    13:     </header>
    14:
    15:     <main>
    16:         {{{ content }}}

Sections are added to the standard BedSheet Err page to show the same.

Moustache Err in BedSheet

Read more...

Install

To install BedSheetMoustache with Fantom Pod Manager, cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install BedSheetMoustache with the Fantom Repository Manager (fanr), cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install manually, download the pod file and copy it to the %FAN_HOME%/lib/fan/ directory.

afBedSheetMoustache.pod (23.08 kB)

Use

To use BedSheetMoustache in a Fantom project, add a dependency to the project's build.fan:

depends = ["sys 1.0", ..., "afBedSheetMoustache 1.0.6 - 1.0"]

Documentation

Information

Meta information on the BedSheetMoustache pod:

Published by
Steve Eynon
Organisation
Alien-Factory
Pod file size
23.08 kB
Licence
BSD 2-Clause License
Built on
25th Jan 2014
Source code
at https://bitbucket.org/AlienFactory/afbedsheetmoustache
Depends on
afBedSheet, afBounce, afIoc, afIocConfig, afPlastic, mustache, sys, web
Referenced by
Javascript Compatible
No

Dependency Graph

  Use mouse to re-position pods

Release History

There have been 11 releases of BedSheetMoustache: