Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/eknkc/amber
/ functions
Functions
148 in github.com/eknkc/amber
⨍
Functions
148
◇
Types & classes
22
↓ 53 callers
Method
write
(value string)
compiler.go:405
↓ 30 callers
Method
String
()
parser/nodes.go:59
↓ 26 callers
Function
expect
(cur, expected string, t *testing.T)
amber_test.go:448
↓ 24 callers
Function
run
(tpl string, data interface{})
amber_test.go:454
↓ 19 callers
Method
consume
Moves position forward, and removes beginning of s.buffer (len bytes)
parser/scanner.go:461
↓ 19 callers
Method
expect
(typ rune)
parser/parser.go:208
↓ 19 callers
Method
pos
()
parser/parser.go:147
↓ 8 callers
Method
parseBlock
(parent Node)
parser/parser.go:233
↓ 7 callers
Method
Parse
Parse given raw amber template string.
compiler.go:240
↓ 7 callers
Method
visitBlock
(block *parser.Block)
compiler.go:432
↓ 7 callers
Method
visitRawInterpolation
(value string)
compiler.go:618
↓ 6 callers
Function
New
New creates and initialize a new Compiler.
compiler.go:69
↓ 6 callers
Function
newBlock
()
parser/nodes.go:100
↓ 5 callers
Method
indent
(offset int, newline bool)
compiler.go:409
↓ 5 callers
Method
push
(node Node)
parser/nodes.go:106
↓ 5 callers
Method
tempvar
()
compiler.go:423
↓ 4 callers
Function
CompileDir
CompileDir parses and compiles the contents of a supplied directory path, with options. Returns a map of a template identifier (key) to a Go Template
compiler.go:177
↓ 4 callers
Method
advance
()
parser/parser.go:217
↓ 4 callers
Function
newParser
(rdr io.Reader)
parser/parser.go:23
↓ 3 callers
Method
CanInline
()
parser/nodes.go:114
↓ 3 callers
Method
Compile
Compile amber and create a Go Template (html/templates) instance. Necessary runtime functions will be injected and the template will be ready to be ex
compiler.go:302
↓ 3 callers
Function
CompileFile
CompileFile parses and compiles the contents of supplied filename. Returns corresponding Go Template (html/templates) instance. Necessary runtime func
compiler.go:151
↓ 3 callers
Method
CompileString
CompileString compiles the template and returns the Go Template source. You would not be using this unless debugging / checking the output. Please use
compiler.go:352
↓ 3 callers
Method
Next
Returns next token found in buffer
parser/scanner.go:80
↓ 2 callers
Function
Compile
Compile parses and compiles the supplied amber template string. Returns corresponding Go Template (html/templates) instance. Necessary runtime functio
compiler.go:113
↓ 2 callers
Method
CompileWriter
CompileWriter compiles amber and writes the Go Template source into given io.Writer instance. You would not be using this unless debugging / checking
compiler.go:331
↓ 2 callers
Method
Parse
()
parser/parser.go:75
↓ 2 callers
Method
ParseData
Parse given raw amber template bytes, and the filename that belongs with it
compiler.go:258
↓ 2 callers
Method
ParseFile
ParseFile parses the amber template file in given path.
compiler.go:280
↓ 2 callers
Method
Pos
()
parser/nodes.go:34
↓ 2 callers
Method
ensureBuffer
Reads string into s.buffer
parser/scanner.go:475
↓ 2 callers
Method
parse
()
parser/parser.go:175
↓ 2 callers
Method
parseRelativeFile
(filename string)
parser/parser.go:153
↓ 2 callers
Method
parseText
()
parser/parser.go:375
↓ 2 callers
Method
pushFront
(node Node)
parser/nodes.go:110
↓ 2 callers
Method
scanIndent
()
parser/scanner.go:225
↓ 2 callers
Method
visit
(node parser.Node)
compiler.go:364
↓ 2 callers
Method
visitInterpolation
(value string)
compiler.go:614
↓ 1 callers
Method
CompileWithName
CompileWithName is the same as Compile, but allows to specify a name for the template.
compiler.go:307
↓ 1 callers
Method
CompileWithTemplate
CompileWithTemplate is the same as Compile but allows to specify a template.
compiler.go:312
↓ 1 callers
Function
FileParser
(filename string)
parser/parser.go:46
↓ 1 callers
Method
IsRawText
()
parser/nodes.go:187
↓ 1 callers
Method
IsSelfClosing
()
parser/nodes.go:177
↓ 1 callers
Method
NextRaw
()
parser/scanner.go:175
↓ 1 callers
Method
SetFilename
(filename string)
parser/parser.go:38
↓ 1 callers
Method
SetVirtualFilesystem
(fs http.FileSystem)
parser/parser.go:42
↓ 1 callers
Function
VirtualFileParser
(filename string, fs http.FileSystem)
parser/parser.go:58
↓ 1 callers
Method
escape
(input string)
compiler.go:428
↓ 1 callers
Function
findTopmostParentWithNamedBlock
(p *Parser, name string)
parser/parser.go:466
↓ 1 callers
Function
newAssignment
(x, expression string)
parser/nodes.go:224
↓ 1 callers
Function
newComment
(value string)
parser/nodes.go:74
↓ 1 callers
Function
newCondition
(exp string)
parser/nodes.go:198
↓ 1 callers
Function
newDoctype
(value string)
parser/nodes.go:53
↓ 1 callers
Function
newEach
(exp string)
parser/nodes.go:212
↓ 1 callers
Function
newMixin
(name, args string)
parser/nodes.go:238
↓ 1 callers
Function
newMixinCall
(name, args string)
parser/nodes.go:262
↓ 1 callers
Function
newNamedBlock
(name string)
parser/nodes.go:143
↓ 1 callers
Function
newScanner
(r io.Reader)
parser/scanner.go:63
↓ 1 callers
Function
newTag
(name string)
parser/nodes.go:167
↓ 1 callers
Function
newText
(value string, raw bool)
parser/nodes.go:88
↓ 1 callers
Method
parseAssignment
()
parser/parser.go:382
↓ 1 callers
Method
parseComment
()
parser/parser.go:362
↓ 1 callers
Method
parseDoctype
()
parser/parser.go:355
↓ 1 callers
Method
parseEach
()
parser/parser.go:305
↓ 1 callers
Method
parseExtends
()
parser/parser.go:221
↓ 1 callers
Method
parseIf
()
parser/parser.go:279
↓ 1 callers
Method
parseImport
()
parser/parser.go:319
↓ 1 callers
Method
parseMixin
()
parser/parser.go:447
↓ 1 callers
Method
parseMixinCall
()
parser/parser.go:459
↓ 1 callers
Method
parseNamedBlock
()
parser/parser.go:326
↓ 1 callers
Method
parseTag
()
parser/parser.go:389
↓ 1 callers
Function
runtime_eql
(x, y interface{})
runtime.go:184
↓ 1 callers
Function
runtime_lss
(x, y interface{})
runtime.go:234
↓ 1 callers
Method
scanAssignment
()
parser/scanner.go:314
↓ 1 callers
Method
scanAttribute
()
parser/scanner.go:363
↓ 1 callers
Method
scanBlock
()
parser/scanner.go:401
↓ 1 callers
Method
scanClassName
()
parser/scanner.go:352
↓ 1 callers
Method
scanComment
()
parser/scanner.go:325
↓ 1 callers
Method
scanCondition
()
parser/scanner.go:287
↓ 1 callers
Method
scanDoctype
()
parser/scanner.go:271
↓ 1 callers
Method
scanEach
()
parser/scanner.go:303
↓ 1 callers
Method
scanExtends
()
parser/scanner.go:390
↓ 1 callers
Method
scanId
()
parser/scanner.go:341
↓ 1 callers
Method
scanImport
()
parser/scanner.go:379
↓ 1 callers
Method
scanMixin
()
parser/scanner.go:423
↓ 1 callers
Method
scanMixinCall
()
parser/scanner.go:434
↓ 1 callers
Method
scanTag
()
parser/scanner.go:412
↓ 1 callers
Method
scanText
()
parser/scanner.go:445
↓ 1 callers
Method
visitAssignment
(assgn *parser.Assignment)
compiler.go:486
↓ 1 callers
Method
visitComment
(comment *parser.Comment)
compiler.go:446
↓ 1 callers
Method
visitCondition
(condition *parser.Condition)
compiler.go:462
↓ 1 callers
Method
visitDoctype
(doctype *parser.Doctype)
compiler.go:442
↓ 1 callers
Method
visitEach
(each *parser.Each)
compiler.go:472
↓ 1 callers
Method
visitExpression
(outerexpr ast.Expr)
compiler.go:632
↓ 1 callers
Method
visitMixin
(mixin *parser.Mixin)
compiler.go:813
↓ 1 callers
Method
visitMixinCall
(mixinCall *parser.MixinCall)
compiler.go:817
↓ 1 callers
Method
visitTag
(tag *parser.Tag)
compiler.go:490
↓ 1 callers
Method
visitText
(txt *parser.Text)
compiler.go:594
Function
Benchmark_Compile
(b *testing.B)
amber_test.go:420
Function
Benchmark_Parse
(b *testing.B)
amber_test.go:398
next →
1–100 of 148, ranked by callers