Template
Overview
Location
-
Reference:
- Go.dll .NET, .NET Standard 2.0
- Go.fx Island
- Namespace: go.html.template
- Platforms: .NET, .NET Standard 2.0, Island
constructor
constructor
Template()
init()
Sub New()
constructor (Template)
constructor(value: Template)
Template(Template value)
init(_ value: Template)
Sub New(value As Template)
Parameters:
- value:
AddParseTree
method AddParseTree(name: string; tree: Memory<Tree>): tuple of (Memory<Template>, error)
(Memory<Template>, error) AddParseTree(string name, Memory<Tree> tree)
func AddParseTree(_ name: string, _ tree: Memory<Tree>) -> tuple of (Memory<Template>, error)
func AddParseTree(name string, tree Memory<Tree>) tuple of (Memory<Template>, error)
Function AddParseTree(name As string, tree As Memory<Tree>) As Tuple (Of Memory<Template>, error)
Parameters:
- name:
- tree:
Clone
method Clone: tuple of (Memory<Template>, error)
(Memory<Template>, error) Clone()
func Clone() -> tuple of (Memory<Template>, error)
func Clone() tuple of (Memory<Template>, error)
Function Clone() As Tuple (Of Memory<Template>, error)
DefinedTemplates
method DefinedTemplates: string
string DefinedTemplates()
func DefinedTemplates() -> string
func DefinedTemplates() string
Function DefinedTemplates() As string
Delims
method Delims(left: string; right: string): Memory<Template>
Memory<Template> Delims(string left, string right)
func Delims(_ left: string, _ right: string) -> Memory<Template>
func Delims(left string, right string) Memory<Template>
Function Delims(left As string, right As string) As Memory<Template>
Parameters:
- left:
- right:
Execute
method Execute(wr: Writer; data: Object): error
error Execute(Writer wr, Object data)
func Execute(_ wr: Writer, _ data: Object) -> error
func Execute(wr Writer, data interface{}) error
Function Execute(wr As Writer, data As Object) As error
Parameters:
- wr:
- data:
ExecuteTemplate
method ExecuteTemplate(wr: Writer; name: string; data: Object): error
error ExecuteTemplate(Writer wr, string name, Object data)
func ExecuteTemplate(_ wr: Writer, _ name: string, _ data: Object) -> error
func ExecuteTemplate(wr Writer, name string, data interface{}) error
Function ExecuteTemplate(wr As Writer, name As string, data As Object) As error
Parameters:
- wr:
- name:
- data:
Funcs
method Funcs(funcMap: FuncMap): Memory<Template>
Memory<Template> Funcs(FuncMap funcMap)
func Funcs(_ funcMap: FuncMap) -> Memory<Template>
func Funcs(funcMap FuncMap) Memory<Template>
Function Funcs(funcMap As FuncMap) As Memory<Template>
Parameters:
- funcMap:
Lookup
method Lookup(name: string): Memory<Template>
Memory<Template> Lookup(string name)
func Lookup(_ name: string) -> Memory<Template>
func Lookup(name string) Memory<Template>
Function Lookup(name As string) As Memory<Template>
Parameters:
- name:
Name
method Name: string
string Name()
func Name() -> string
func Name() string
Function Name() As string
New
method New(name: string): Memory<Template>
Memory<Template> New(string name)
func New(_ name: string) -> Memory<Template>
func New(name string) Memory<Template>
Function New(name As string) As Memory<Template>
Parameters:
- name:
Option
method Option(params opt: array of string): Memory<Template>
Memory<Template> Option(params string[] opt)
func Option(_ opt: string...) -> Memory<Template>
func Option(opt []string) Memory<Template>
Function Option(ParamArray opt As string()) As Memory<Template>
Parameters:
- opt:
Parse
method Parse(text: string): tuple of (Memory<Template>, error)
(Memory<Template>, error) Parse(string text)
func Parse(_ text: string) -> tuple of (Memory<Template>, error)
func Parse(text string) tuple of (Memory<Template>, error)
Function Parse(text As string) As Tuple (Of Memory<Template>, error)
Parameters:
- text:
ParseFiles
method ParseFiles(params filenames: array of string): tuple of (Memory<Template>, error)
(Memory<Template>, error) ParseFiles(params string[] filenames)
func ParseFiles(_ filenames: string...) -> tuple of (Memory<Template>, error)
func ParseFiles(filenames []string) tuple of (Memory<Template>, error)
Function ParseFiles(ParamArray filenames As string()) As Tuple (Of Memory<Template>, error)
Parameters:
- filenames:
ParseGlob
method ParseGlob(pattern: string): tuple of (Memory<Template>, error)
(Memory<Template>, error) ParseGlob(string pattern)
func ParseGlob(_ pattern: string) -> tuple of (Memory<Template>, error)
func ParseGlob(pattern string) tuple of (Memory<Template>, error)
Function ParseGlob(pattern As string) As Tuple (Of Memory<Template>, error)
Parameters:
- pattern:
Templates
method Templates: Slice<Memory<Template>>
Slice<Memory<Template>> Templates()
func Templates() -> Slice<Memory<Template>>
func Templates() Slice<Memory<Template>>
Function Templates() As Slice<Memory<Template>>
Tree
var Tree: Memory<Tree>;
Memory<Tree> Tree
var Tree: Memory<Tree>
Tree Memory<Tree>
FIELD Tree() As Memory<Tree>
Tree
var Tree: Memory<Tree>;
Memory<Tree> Tree
var Tree: Memory<Tree>
Tree Memory<Tree>
FIELD Tree() As Memory<Tree>
constructor
constructor
Template()
init()
Sub New()
constructor (Template)
constructor(value: Template)
Template(Template value)
init(_ value: Template)
Sub New(value As Template)
Parameters:
- value: