@@ -4,96 +4,97 @@ yieldUnescaped '''<!doctype html>
4
4
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
5
5
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
6
6
'''
7
- html {
8
- head {
9
- meta(charset :' utf-8' )
10
- title(' Ratpack: Simple, lean & powerful HTTP apps' )
11
7
12
- meta( name : ' apple-mobile-web-app-title ' , content : ' Ratpack ' )
13
- meta(name : ' description ' , content : ' Ratpack apps are lightweight, fast, composable with other tools and libraries, easy to test and enjoyable to develop. ' )
14
- meta( name : ' viewport ' , content : ' width=device-width, initial-scale=1 ' )
8
+ head {
9
+ meta(charset : ' utf-8 ' )
10
+ title( ' Ratpack: Simple, lean & powerful HTTP apps ' )
15
11
16
- link( rel : ' author ' , href : ' /assets/humans.txt ' )
17
- link( rel : ' stylesheet ' , href : assets[ ' assets/lib/normalize/normalize.css ' ] )
18
- link( rel : ' stylesheet ' , href : assets[ ' assets/styles/ratpack.css ' ] )
12
+ meta( name : ' apple-mobile-web-app-title ' , content : ' Ratpack ' )
13
+ meta( name : ' description ' , content : ' Ratpack apps are lightweight, fast, composable with other tools and libraries, easy to test and enjoyable to develop. ' )
14
+ meta( name : ' viewport ' , content : ' width=device-width, initial-scale=1 ' )
19
15
20
- script(src : assets[' assets/lib/modernizr/modernizr.js' ]) {}
21
- script(src : assets[' assets/lib/prism/prism.js' ]) {}
22
- }
23
- body {
16
+ link(rel : ' author' , href : ' /assets/humans.txt' )
17
+ link(rel : ' stylesheet' , href : assets[' assets/lib/normalize/normalize.css' ])
18
+ link(rel : ' stylesheet' , href : assets[' assets/styles/ratpack.css' ])
24
19
20
+ script(src : assets[' assets/lib/modernizr/modernizr.js' ]) {}
21
+ script(src : assets[' assets/lib/prism/prism.js' ]) {}
22
+ }
23
+ body {
25
24
26
25
27
- header(id : ' page-header' ) {
28
- div(class : ' ratpack-logo' ) {
29
- a(href : ' /' ) { h1(' Ratpack' ) }
30
- p(' Simple, lean & powerful HTTP apps' )
31
- }
32
26
33
- nav(class : ' social' ) {
34
- h2(' Ratpack is on…' )
35
- a(href : ' http://github.com/ratpack/' , title : ' ratpack on GitHub' , rel : ' external' , ' GitHub' )
36
- newLine()
37
- span(class : ' join' , ' &' )
38
- newLine()
39
- a(href : ' http://twitter.com/ratpackweb' , title : ' @ratpackweb on Twitter' , rel : ' external' , ' Twitter' )
40
- }
27
+ header(id : ' page-header' ) {
28
+ div(class : ' ratpack-logo' ) {
29
+ a(href : ' /' ) { h1(' Ratpack' ) }
30
+ p(' Simple, lean & powerful HTTP apps' )
31
+ }
41
32
33
+ nav(class : ' social' ) {
34
+ h2(' Ratpack is on…' )
35
+ a(href : ' http://github.com/ratpack/' , title : ' ratpack on GitHub' , rel : ' external' , ' GitHub' )
36
+ newLine()
37
+ span(class : ' join' , ' &' )
38
+ newLine()
39
+ a(href : ' http://twitter.com/ratpackweb' , title : ' @ratpackweb on Twitter' , rel : ' external' , ' Twitter' )
42
40
}
43
41
44
- bodyContents()
42
+ }
45
43
46
- if (! nobanner) {
47
- footer(id : ' page-footer' ) {
48
- div(class : ' content' ) {
49
- section(class : ' about' ) {
50
- p {
51
- yield ' Ratpack is free to use, '
52
- a(href : ' https://github.com/ratpack/ratpack' , rel : ' external' , ' open source' )
53
- yield ' , and licensed under the '
54
- a(href : ' http://www.apache.org/licenses/LICENSE-2.0.html' , rel : ' external' , ' Apache License, Version 2.0.' )
55
- }
56
- p {
57
- yield ' This site is a Ratpack application running on '
58
- a(href : ' https://www.heroku.com/' , rel : ' external' , ' Heroku' )
59
- yield ' .'
60
- }
61
- p {
62
- a(href : ' http://www.yourkit.com/java/profiler/index.jsp' , ' YourKit' )
63
- yield ' supports Ratpack open source project with its full-featured Java Profiler.'
64
- }
44
+ bodyContents()
45
+
46
+ if (! nobanner) {
47
+ footer(id : ' page-footer' ) {
48
+ div(class : ' content' ) {
49
+ section(class : ' about' ) {
50
+ p {
51
+ yield ' Ratpack is free to use, '
52
+ a(href : ' https://github.com/ratpack/ratpack' , rel : ' external' , ' open source' )
53
+ yield ' , and licensed under the '
54
+ a(href : ' http://www.apache.org/licenses/LICENSE-2.0.html' , rel : ' external' , ' Apache License, Version 2.0.' )
55
+ }
56
+ p {
57
+ yield ' This site is a Ratpack application running on '
58
+ a(href : ' https://www.heroku.com/' , rel : ' external' , ' Heroku' )
59
+ yield ' .'
60
+ }
61
+ p {
62
+ a(href : ' http://www.yourkit.com/java/profiler/index.jsp' , ' YourKit' )
63
+ yield ' supports Ratpack open source project with its full-featured Java Profiler.'
65
64
}
66
- def credits = [
67
- [ href : ' https://bintray.com/ ' , img : [ src : ' bintray.png ' , alt : ' Bintray ' , width : 55 , height : 40 ]],
68
- [href : ' https://github .com/' , img : [src : ' github .png' , alt : ' Octocat ' , width : 122 , height : 40 ]],
69
- [href : ' http ://www.gradle.org /' , img : [src : ' gradle .png' , alt : ' Gradle logo ' , width : 149 , height : 40 ]],
70
- [href : ' http://groovy-lang. org/' , img : [src : ' groovy .png' , alt : ' Groovy logo' , width : 80 , height : 40 ]],
71
- [href : ' https ://www.heroku.com /' , img : [src : ' heroku .png' , alt : ' Heroku logo' , width : 120 , height : 40 ]],
72
- [href : ' http ://netty.io /' , img : [src : ' netty .png' , alt : ' Netty logo' , width : 80 , height : 40 ]],
73
- [href : ' http://www.yourkit.com/java/profiler/index.jsp ' , img : [src : ' yourkit .png' , alt : ' YourKit logo' , width : 132 , height : 43 ]]
74
- ]
75
- section( class : ' credits ' ) {
76
- credits. each { credit ->
77
- a( href : credit. href, rel : ' external ' ) {
78
- img( src : assets[ " assets/images/ ${ credit.img.src } " ], alt : credit . img . alt, width : credit . img . width, height : credit . img . height)
79
- }
65
+ }
66
+ def credits = [
67
+ [href : ' https://bintray .com/' , img : [src : ' bintray .png' , alt : ' Bintray ' , width : 55 , height : 40 ]],
68
+ [href : ' https ://github.com /' , img : [src : ' github .png' , alt : ' Octocat ' , width : 122 , height : 40 ]],
69
+ [href : ' http://www.gradle. org/' , img : [src : ' gradle .png' , alt : ' Gradle logo' , width : 149 , height : 40 ]],
70
+ [href : ' http ://groovy-lang.org /' , img : [src : ' groovy .png' , alt : ' Groovy logo' , width : 80 , height : 40 ]],
71
+ [href : ' https ://www.heroku.com /' , img : [src : ' heroku .png' , alt : ' Heroku logo' , width : 120 , height : 40 ]],
72
+ [href : ' http://netty.io/ ' , img : [src : ' netty .png' , alt : ' Netty logo' , width : 80 , height : 40 ]],
73
+ [ href : ' http://www.yourkit.com/java/profiler/index.jsp ' , img : [ src : ' yourkit.png ' , alt : ' YourKit logo ' , width : 132 , height : 43 ] ]
74
+ ]
75
+ section( class : ' credits' ) {
76
+ credits . each { credit ->
77
+ a( href : credit. href, rel : ' external ' ) {
78
+ img( src : assets[ " assets/images/ ${ credit.img.src } " ], alt : credit . img . alt, width : credit . img . width, height : credit . img . height)
80
79
}
81
80
}
82
81
}
83
82
}
84
83
}
85
- script {
86
- yieldUnescaped '''
87
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
88
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
89
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
90
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
84
+ }
85
+ script {
86
+ yieldUnescaped '''
87
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
88
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
89
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
90
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
91
91
92
- ga('create', 'UA-41264608-1', 'ratpack.io');
93
- ga('send', 'pageview');
92
+ ga('create', 'UA-41264608-1', 'ratpack.io');
93
+ ga('send', 'pageview');
94
94
'''
95
- }
96
-
97
- link(rel : ' stylesheet' , href : assets[' assets/styles/fonts.css' ])
98
95
}
96
+
97
+ link(rel : ' stylesheet' , href : assets[' assets/styles/fonts.css' ])
99
98
}
99
+
100
+ yieldUnescaped ' </html>'
0 commit comments