func mkMap(args ...interface{}) map[interface{}]interface{} {
	out := make(map[interface{}]interface{})
	for k, v := range args {
		if k%2 == 0 {
			continue
		}
		out[args[k-1]] = v
	}
	return out
}
// mkMap allows you to create a map within a template, so that you can pass more
// than one parameter to a template block. Inspired by
// https://stackoverflow.com/a/25013152/199475 .
mkMap allows you to create a map within a template, so that you can pass more
than one parameter to a template block.
// mkMap allows you to create a map within a template so that you can pass more // than one parameter to a template block . Inspired by // https : // stackoverflow . com / a / 25013152 / 199475 .
func mkMap(args ...interface{}) map[interface{}]interface{} {
	out := make(map[interface{}]interface{})
	for k, v := range args {
		if k%2 == 0 {
			continue
		}
		out[args[k-1]] = v
	}
	return out
}
func mkMap ( args ... interface { } ) map [ interface { } ] interface { } { out := make ( map [ interface { } ] interface { } ) for k , v := range args { if k % 2 == 0 { continue } out [ args [ k - 1 ] ] = v } return out }
mkMap allows you to create a map within a template, so that you can pass more
than one parameter to a template block.
mkMap allows you to create a map within a template so that you can pass more than one parameter to a template block .