-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
131 lines (117 loc) · 5.4 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Iron - Rust web application framework</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link href="github_pages/bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
<link href="github_pages/bower_components/fontawesome/css/font-awesome.min.css" rel="stylesheet">
<!-- Iron page styling -->
<link href="github_pages/css/style.css" rel="stylesheet">
<link href="github_pages/highlight/styles/solarized_light.css" rel="stylesheet">
<link rel="shortcut icon" href="github_pages/favicon.ico">
<link href='http://fonts.googleapis.com/css?family=Questrial|Alegreya+Sans+SC:400,900|Bilbo|Abel' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Alegreya+Sans+SC:400,900|Alegreya+Sans' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<img src="favicon.ico">
</button>
<a class="navbar-brand" href="#">
<img src="favicon.ico" class='hidden-xs'>
<span>iron</span>
</a>
</div>
<div class="collapse navbar-collapse">
<!-- <ul class="nav navbar-nav">
<li class="active"><a href="#">Docs</a></li>
<li><a href="#contact">Other</a></li>
</ul> -->
<ul class="nav navbar-nav navbar-right">
<!-- Our docs are now served with gh-pages
<li class="doc-note">Our docs are served with Iron!</li>
-->
<li class="doc-link"><a href="/doc/iron">Docs</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Resources<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="https://github.com/iron/">GitHub</a></li>
<li><a href="http://www.rust-lang.org/">Rust</a></li>
<li><a href="http://www.reddit.com/r/rust">/r/rust</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container">
<div class="row" id="main">
<div class="col-md-4 col-md-offset-4 iron-jumbo">
<h1>IRON</h1>
<p>extensible web framework for rust</p>
<br>
<iframe src="http://ghbtns.com/github-btn.html?user=iron&repo=iron&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="130" height="30"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=iron&repo=iron&type=fork&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="130" height="30"></iframe>
</div>
</div>
</div>
<br><br>
<div class="row hidden-xs example-code">
<pre><code class="lang-rust">
extern crate iron;
use iron::prelude::*;
use iron::status;
fn main() {
fn hello_world(_: &mut Request) -> IronResult<Response> {
Ok(Response::with((status::Ok, "Hello World!")))
}
let _server = Iron::new(hello_world).http("localhost:3000").unwrap();
println!("On 3000");
}
</code></pre>
</div><!-- /row -->
<div class="container-fluid">
<div class="row down-arrow hidden-xs">
<i class="fa fa-5x fa-angle-down"></i>
<br><br>
</div>
</div>
<div class="container content-container">
<div class="row">
<div class="content-box">
<h2 id="introduction">Introduction</h2>
<p>Iron is a fast and flexible middleware-oriented server framework that provides a
small but robust foundation for creating complex applications and RESTful APIs. No
middleware are bundled with Iron - instead, everything is drag-and-drop,
allowing for ridiculously modular setups.</p>
</div>
<div class="content-box">
<h2 id="installation">Installation</h2>
<p>Iron works on Rust stable, which you can install <a target="_blank" href="http://www.rust-lang.org/">here</a>.</p>
<p>To get Iron itself, just add it your project's <code>Cargo.toml</code>.
<pre><code class="lang-toml">[dependencies]
iron = "0.6.*"</code></pre>
</p>
</div>
<div class="content-box">
<h2 id="documentation">Documentation</h2>
<p>Iron's docs are live-reloaded on new successful builds, and can be found
<a target="_blank" href="http://ironframework.io/doc/iron/">here</a>.</p>
<p>The preferred way to get help with Iron is to ask around on the
mozilla IRC network on <code>#rust</code>, <code>#iron</code>, or
<code>#rust-webdev</code></p>
</div>
</div>
</div>
<!-- Load JS here for greater good =============================-->
<script src="github_pages/bower_components/jquery/dist/jquery.min.js"></script>
<script src="github_pages/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="github_pages/scripts.js"></script>
<script src="github_pages/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>