forked from spullara/mustache.java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMustacheVisitor.java
More file actions
32 lines (21 loc) · 998 Bytes
/
MustacheVisitor.java
File metadata and controls
32 lines (21 loc) · 998 Bytes
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
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 comment(TemplateContext templateContext, String comment);
}