HTML Template, recherche tuto
Bonjour,
J'ai besoin d'un tuto pour reussir a maintriser ce genre de code:
Il s'agit de page groovy server page.
Ce que je veux concerne bien sûr HTML.
L'exemple de grail fonctionne sans probleme
Ceci est un Template trouver sur le net:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<!DOCTYPE html>
<html>
<head>
<title><g:layoutTitle default="Grails"/></title>
<style>
#header {background-color:#ffe0e0;text-align: center;}
#footer {background-color:#e0e0ff;text-align: center;}
</style>
<g:layoutHead/>
</head>
<body>
<div id="header">HEADER</div>
<g:layoutBody/>
<div id="footer">FOOTER</div>
</body>
</html> |
Ceci est la page de contenu
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="test"/>
<title>fox the fox </title>
<link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}" type="text/css">
</head>
<body>
<p>The quick brown fox jumps over the lazy dog.</p>
</body>
</html> |
Merci de votre aide