[ Home | Main Table Of Contents | Table Of Contents | Keyword Index ]
NAME
mustache-app - Mustache - Application
Table Of Contents
SYNOPSIS
package require mustache
mustache datafile templatefile
mustache templatefile
mustache
mustache -t|--token templatefile
mustache -h|--help
DESCRIPTION
Welcome to the Mustache project for Tcl, written by Andreas Kupries.
It provides a set of five related Tcl packages for the parsing and rendering of mustache-style logic-less templates, plus an application for easy command-line access to the functionality.
For availability please read Mustache - How To Get The Sources.
Overview
mustache is a simple command-line application providing easy access to the functionality of the project. Taking yaml-formatted data (as file, or from stdin) and a mustache template (from file or stdin) it prints the result of rendering the template against all the data.
Syntax
mustache datafile templatefile
Renders the yaml data in the datafile against the mustache template in templatefile and prints the result to its standard output.
Note that the data file may contain more than one yaml document, separated by ---. In that case each document is separately rendered and printed. Note that the application will not insert separators into such an output. Desired or required separators have to be part of the template.
mustache templatefile
As above, however the yaml documents are read from the standard input of the application.
-
As above, however both the yaml documents and the template are read from the standard input of the application. The template is the block of text found after the last --- separator.
mustache -t|--token templatefile
Parses the template stored in the templatefile and prints the extracted structure to the standard output of the application for inspection.
mustache -h|--help
Prints basic usage information (command syntax) to the standard output of the application.
Bugs, Ideas, Feedback
Both the package(s) and this documentation will undoubtedly contain bugs and other problems. Please report such at Mustache Tracker.
Please also report any ideas you may have for enhancements of either package(s) and/or documentation.
KEYWORDS
application, command line, logic-less templates, mustache, standard input, standard output, templating, terminal
COPYRIGHT
Copyright © 2019-2021 Andreas Kupries
Copyright © 2019-2021 Documentation, Andreas Kupries