mkpage: Experimental deconstructed content system

USAGE

mkpage [OPTION] [KEY/VALUE DATA PAIRS] [TEMPLATE_FILENAMES]

SYNOPSIS

Using the key value pairs populate the template(s) and render to stdout.

OPTIONS

	-h	show help
	-help	show help
	-l	show license
	-license	show license
	-t	show the default template source
	-template	show the default template source
	-v	show version
	-version	show version

EXAMPLE

Template

    Date: {{- .now}}

    Hello {{.name -}},
    
    The current weather is

    {{.weather}}

    Thank you

	{{.signature}}

Render the template above (i.e. myformletter.template) would be accomplished from the following data sources–

That would be expressed on the command line as follows

	mkpage "now=text:$(date)" "name=text:Little Frieda" \
		"weather=http://forecast.weather.gov/MapClick.php?lat=13.47190933300044&lon=144.74977715100056&FcstType=json" \
		signature=testdata/signature.txt \
		testdata/myformletter.template

Golang’s text/template docs can be found at

  https://golang.org/pkg/text/template/