AF-BedSheetMoustache 1.0.2
A library for integrating 'Mustache' templates with the afBedSheet web framework

afBedSheetMoustache is a Fantom library that integrates Mustache templates with the afBedSheet web framework.

It provides a cache for your compiled Mustache templates and throws MoustacheErrs to show details of any 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 afBedSheet Err page to show the same.

Read more...

Install

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

Or to install AF-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 (22.99 kB)

Use

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

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

Documentation

Information

Meta information on the AF-BedSheetMoustache pod:

Published by
Steve Eynon
Organisation
Alien-Factory
Pod file size
22.99 kB
Licence
BSD 2-Clause License
Built on
12th Sep 2013
Source code
at https://bitbucket.org/AlienFactory/afbedsheetmoustache
Depends on
afBedSheet, afIoc, 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 AF-BedSheetMoustache: