code: func TemplateOutputArgs(templatePath string, args map[string]interface{}) (data []byte, err error) {
  	// Get the Template.
  	lang, _ := args[CurrentLocaleViewArg].(string)
  	template, err := MainTemplateLoader.TemplateLang(templatePath, lang)
  	if err != nil {
  		return nil, err
  	}
  	tr := &RenderTemplateResult{
  		Template: template,
  		ViewArgs: args,
  	}
  	b, err := tr.ToBytes()
  	if err != nil {
  		return nil, err
  	}
  	return b.Bytes(), nil
  }
docs: // TemplateOutputArgs returns the result of the template rendered using the passed in arguments.