Example #1
0
func contentForFunc(helper *structure.Helper, values *structure.RequestData) []byte {
	// If there is no array attached to the request data already, make one
	if values.ContentForHelpers == nil {
		values.ContentForHelpers = make([]structure.Helper, 0)
	}
	// Collect all contentFor helpers to use them with a block helper
	values.ContentForHelpers = append(values.ContentForHelpers, *helper)
	return []byte{}
}