2
通常我在freemarker中使用這種類型的數據:可以FreeMarker的做第二次更換
(root)
|
+- website = "StackOverflow"
|
+- href = "http://stackoverflow.com"
|
+- label = "my favorite website."
但今天,一個Java程序員給我這樣一個模型:
(root)
|
+- website = "StackOverflow"
|
+- href = "http://stackoverflow.com${dir}"
|
+- label = "my favorite website"
|
+- dir = "https://stackoverflow.com/questions/ask"
他要我在最後一頁顯示目錄的價值。 模板:
${label}<a href="${href}" >${website}</a>
我建議他寫一個模板這樣
${label}<a href="${href}${dir}" >${website}</a>
,但他不希望做這樣this.I要問,如果有任何的方式來實現這一要求。