public class Content{
private String previous;
private String current;
public WatcherContent addPrevious(String previous) {
this.previous = previous;
return this;
}
public WatcherContent addCurrent(String current) {
this.current = current;
return this;
}
public String getPrevious() {
return previous;
}
public String getCurrent() {
return current;
}
}
我在上面有我的内容对象并将其放在地图对象中
Map<String,Content> content = new HashMap<>();
我想使用 rythm 引擎将地图的内容显示为 html
这是我的模板
@args(){
Map<String,Content> content
}
<html>
<title>content.get("key").getPrevious()</title>
</html>
但节奏引擎显示此错误
30: protected String status=""; //line: 12
>> 31: protected Map<String,Content> content=null; //line: 12