-
Notifications
You must be signed in to change notification settings - Fork 284
Expand file tree
/
Copy pathMustacheVisitor.java
More file actions
34 lines (22 loc) · 1 KB
/
MustacheVisitor.java
File metadata and controls
34 lines (22 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.github.mustachejava;
/**
* Callbacks from the parser as a mustache template is parsed.
*/
public interface MustacheVisitor {
// Mustache
Mustache mustache(TemplateContext templateContext);
// Specified
void iterable(TemplateContext templateContext, String variable, Mustache mustache);
void notIterable(TemplateContext templateContext, String variable, Mustache mustache);
void partial(TemplateContext templateContext, String variable);
void value(TemplateContext templateContext, String variable, boolean encoded);
void write(TemplateContext templateContext, String text);
void pragma(TemplateContext templateContext, String pragma, String args);
// Internal
void eof(TemplateContext templateContext);
// Extension
void extend(TemplateContext templateContext, String variable, Mustache mustache);
void name(TemplateContext templateContext, String variable, Mustache mustache);
void dynamicPartial(TemplateContext paramTemplateContext,
String paramString);
}