Skip to content

Instantly share code, notes, and snippets.

@nazartm
Created February 10, 2013 12:47
Show Gist options
  • Save nazartm/4749493 to your computer and use it in GitHub Desktop.
Save nazartm/4749493 to your computer and use it in GitHub Desktop.
Templating in Wicket
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org" lang="en">
<head>
<meta charset="utf-8"/>
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico"/>
</head>
<body>
<header>
<h1>
<img src="img/logo.png" id="logo"/>
<wicket:message key="site.title">site title</wicket:message>
</h1>
</header>
<div id="content">
<wicket:child/>
</div>
<footer>
<p>Footer text</p>
</footer>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org" lang="no">
<head>
<title>Page title</title>
</head>
<wicket:extend>
<h1>Sample page.</h1>
</wicket:extend>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment