summaryrefslogtreecommitdiff
path: root/gomplate.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2017-06-04 16:04:36 -0400
committerDave Henderson <dhenderson@gmail.com>2017-06-05 10:20:44 -0400
commitb1730c1956aed244d9d05255c95f427fdfcf4d1e (patch)
tree19257a9e4ef7fec51177f4a7e36fced7a85055fc /gomplate.go
parenta4ddbc506abd34da600abb392513a1e49ea04548 (diff)
Adding TOML support
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'gomplate.go')
-rw-r--r--gomplate.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/gomplate.go b/gomplate.go
index 78317634..f02c6f14 100644
--- a/gomplate.go
+++ b/gomplate.go
@@ -52,6 +52,7 @@ func NewGomplate(data *Data, leftDelim, rightDelim string) *Gomplate {
"jsonArray": typeconv.JSONArray,
"yaml": typeconv.YAML,
"yamlArray": typeconv.YAMLArray,
+ "toml": typeconv.TOML,
"csv": typeconv.CSV,
"csvByRow": typeconv.CSVByRow,
"csvByColumn": typeconv.CSVByColumn,
@@ -61,6 +62,7 @@ func NewGomplate(data *Data, leftDelim, rightDelim string) *Gomplate {
"toJSON": typeconv.ToJSON,
"toJSONPretty": typeconv.toJSONPretty,
"toYAML": typeconv.ToYAML,
+ "toTOML": typeconv.ToTOML,
"toCSV": typeconv.ToCSV,
"ec2meta": ec2meta.Meta,
"ec2dynamic": ec2meta.Dynamic,