aboutsummaryrefslogtreecommitdiff
path: root/website/templates/_scaffold.html
blob: be004744df8edf467540d19c62ad642b8e8dff54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<#macro feature title href>
	<div class="bs-callout bs-callout-danger">
		<h4><a href="${href}"><code>${title}</code></a></h4>
		<p><#nested></p>
	</div>
</#macro>

<#assign setupTargets = {
	"Compilers": {
		"Javac": "javac",
		"ECJ": "ecj"
	},
	"Build tools": {
		"maven": "maven",
		"gradle": "gradle",
		"ant": "ant",
		"kobalt": "kobalt"
	},
	"IDEs": {
		"Eclipse": "eclipse",
		"IntelliJ IDEA": "intellij",
		"Netbeans": "netbeans",
		"MyEclipse": "eclipse",
		"Spring Tool Suite": "eclipse",
		"JBoss Developer Studio": "eclipse",
		"Visual Studio Code": "vscode"
	},
	"Platforms": {
		"Android": "android",
		"GWT": "gwt"
	}
}>

<#macro scaffold load=[] title='Project Lombok'>
	<!DOCTYPE html>
	<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="google-site-verification" content="uCgX3Or3kDRGpbJ6JCsQc3Ub4JsnR5-p0itfsKAYZ_U" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="/favicon.ico" rel="icon" type="image/x-icon" />

		<title>${title}</title>

		<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"
			integrity="sha384-bPV3mA2eo3edoq56VzcPBmG1N1QVUfjYMxVIJPPzyFJyFZ8GFfN7Npt06Zr23qts" crossorigin="anonymous"></script>

		<link href="/css/bootstrap.css" rel="stylesheet" />
		<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"
			integrity="sha384-CmLV3WR+cw/TcN50vJSYAs2EAzhDD77tQvGcmoZ1KEzxtpl2K5xkrpFz9N2H9ClN" crossorigin="anonymous">

		<link href="/css/custom.css" rel="stylesheet" />

		<#list load as ld>
			<#if ld?ends_with(".css")>
				<link href="${ld?url_path}" rel="stylesheet" />
			</#if>
		</#list>
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"
			integrity="sha384-Pn+PczAsODRZ2PiGg0IheRROpP7lXO1NTIjiPo6cca8TliBvaeil42fobhzvZd74" crossorigin="anonymous"></script>
		<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js"
			integrity="sha384-VI5+XuguQ/l3kUhh4knz7Hxptx47wpQbVRDnp8v7Vvuhzwn1PEYb/uvtH6KLxv6d" crossorigin="anonymous"></script>

		<script src="/js/history.js"></script>
		<script src="/js/main.js"></script>
		<#list load as ld>
			<#if ld?ends_with(".js")>
				<script src="${ld?url_path}"></script>
			</#if>
		</#list>
	</head><body>
		<script>
			(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-9884254-1', 'auto');
ga('send', 'pageview');
		</script>
		<div class="navbar navbar-default navbar-fixed-top">
			<div class="container">
				<div class="navbar-header">
					<a href="/" class="navbar-brand">Lombok Project</a>
					<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
				</div>
				<div class="navbar-collapse collapse" id="navbar-main">
					<ul class="nav navbar-nav">
						<li class="dropdown">
							<a class="dropdown-toggle pointer" data-toggle="dropdown">Features<span class="caret"></span></a>
							<ul class="dropdown-menu" aria-labelledby="themes">
								<li><a href="/features/all">Stable</a></li>
								<li><a href="/features/experimental/all">Experimental</a></li>
							</ul>
						</li>
						<li class="dropdown">
							<a class="dropdown-toggle pointer" data-toggle="dropdown">Community<span class="caret"></span></a>
							<ul class="dropdown-menu" aria-labelledby="themes">
								<li><a href="https://groups.google.com/group/project-lombok">Discuss / Help</a></li>
								<li><a href="https://github.com/rzwitserloot/lombok/issues">Issues</a></li>
								<li><a href="/contributing/index">Documentation for contributors</a></li>
								<li><a href="/contact">Contact the team behind Project Lombok</a></li>
							</ul>
						</li>
						<li>
							<a href="/order-license-info">
								<span>Order / Donate</span>
							</a>
						</li>
						<li class="dropdown">
							<a href="/setup/overview" class="smallOnly"><span>How to use</span></a>
							<a class="dropdown-toggle pointer wideOnly" data-toggle="dropdown">Install<span class="caret"></span></a>
							<ul class="dropdown-menu" aria-labelledby="themes">
								<#list setupTargets as cat, tgtList>
									<li class="header">${cat}</li>
									<#list tgtList as name, url>
										<li class="target"><a href="/setup/${url}">${name}</a></li>
									</#list>
									<#sep><li class="divider"></li></#sep>
								</#list>
							</ul>
						</li>
						<li><a href="/download">Download</a></li>
					</ul>
				</div>
			</div>
		</div>
		<div class="container-fluid main-section" id="main-section">
			<#nested>
		</div>
		<footer class="container">
			<footer class="footer text-center">
				<div class="container">
					<a href="/credits">credits</a> | Copyright &copy; 2009-${year} The Project Lombok
					Authors, licensed under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT
					license</a>.
				</div>
			</footer>
		</footer>
	</body>
</html>
</#macro>

<#macro h1 title class="">
<#assign idvalue="*"?no_esc + "${title}"/>
<h1 class="${class}" id="${idvalue?markup_string?replace("[ _]", "-", "r")?lower_case?replace("[^a-zA-Z0-9-]", "", "r")}">${title}</h1>
</#macro>

<#macro h2 title class="">
<#assign idvalue="*"?no_esc + "${title}"/>
<h2 class="${class}" id="${idvalue?markup_string?replace("[ _]", "-", "r")?lower_case?replace("[^a-zA-Z0-9-]", "", "r")}">${title}</h2>
</#macro>

<#macro h3 title class="">
<#assign idvalue="*"?no_esc + "${title}"/>
<h3 class="${class}" id="${idvalue?markup_string?replace("[ _]", "-", "r")?lower_case?replace("[^a-zA-Z0-9-]", "", "r")}">${title}</h3>
</#macro>