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<>();
リズムエンジンを使ってmap to 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