使用 SpringSource Slices 的可插拔樣式
自從我們宣布 SpringSource Slices 以來,許多使用者和客戶詢問有關使用 Slices 使其網站的樣式和品牌具有可插拔性的問題。 在此部落格中,我將示範使用 Slices 有多麼容易。
可插拔樣式
我有一個標準的 war 檔案,名為 styled.host.war,其中包含一個非常簡單的 index.html 頁面<html>
<head>
<title>SpringSource Slices Pluggable Styling Demonstration</title>
<link rel="StyleSheet" href="styles/main.css" type="text/css" />
</head>
<body>
<div class="header">
<div class="title">SpringSource Slices</div>
<div class="subtitle">Pluggable Styling Demonstration</div>
</div>
</body>
</html>
如您所見,它正在尋找 CSS 檔案…