2014-02-13 39 views
0

我正在使用播放框架1.2.6,似乎無法找到一個方便的方式來設置HTML頁面中的元數據描述。設置標題有這樣的:如何在播放框架中設置元數據?

#{set title:'This is the title' /} 

產生

<title>This is the title</title> 

是否有任何類似這會產生這樣的:

<meta name="description" content="This is the description"> 

回答

0

其實,這是比我想象的要容易得多。我只是修改這部分代碼在header.html中:

<meta name="description" content="#{get 'description' /}"> 

然後在擴展了header.html頁面:

#{set description:'This is the description' /}