templateprocessor

package
v0.0.0-...-691b052 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

README

TEMPLATEPROCESSOR

Synopsys

SETTING TYPE REQUIRED DEFAULT VALUE
location location true ?
var hash false {}
target string false "output"

Details

location
  • This is a required setting.
  • Value type is location
  • Default value is ?

Go Template content

set inline content, a path or an url to the template content

Go template : https://golang.org/pkg/html/template/

var
  • Value type is hash
  • Default value is {}

You can set variable to be used in template by using ${var}. each reference will be replaced by the value of the variable found in Template's content The replacement is case-sensitive.

target
  • Value type is string
  • Default value is "output"

Define the target field for placing the template execution result. If this setting is omitted, the data will be stored in the "output" field

Configuration blueprint

templateprocessor{
	location => "test.tpl"
	var => {"hostname"=>"myhost","varname"=>"varvalue"}
	target => "mydata"
}

Documentation

Overview

Code generated by "bitfanDoc "; DO NOT EDIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() processors.Processor

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL