AF-BedSheetMoustache 0.0.2A 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.
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 (26.14 kB)
Use
To use AF-BedSheetMoustache in a Fantom project, add a dependency to the project's build.fan
:
depends = ["sys 1.0", ..., "afBedSheetMoustache 0.0.2 - 0.0"]
Documentation
Information
Meta information on the AF-BedSheetMoustache pod:
- Published by
- Steve Eynon
- Organisation
- Alien-Factory
- Pod file size
- 26.14 kB
- Licence
- BSD 2-Clause License
- Built on
- 19th Aug 2013
- Source code
- at https://bitbucket.org/SlimerDude/afbedsheetmoustache
- Depends on
- afBedSheet, afIoc, mustache, sys, web
- Referenced by
- Javascript Compatible
- No
Dependency Graph
Release History
There have been 11 releases of AF-BedSheetMoustache: