BedSheetMoustache 1.0.8A library for integrating Mustache templates with the BedSheet web framework
BedSheet Moustache
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.
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 (22.75 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.8 - 1.0"]
Documentation
Information
Meta information on the BedSheetMoustache pod:
- Published by
- Steve Eynon
- Organisation
- Alien-Factory
- Pod file size
- 22.75 kB
- Licence
- The MIT Licence
- Built on
- 2nd May 2014
- Source code
- at https://bitbucket.org/AlienFactory/afbedsheetmoustache
- Depends on
- afBedSheet, afBounce, afButter, afConcurrent, afIoc, afIocConfig, afPlastic, afSizzle, concurrent, mustache, sys, web
- Referenced by
- Javascript Compatible
- No
Dependency Graph
Release History
There have been 11 releases of BedSheetMoustache: