-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
345 lines (312 loc) · 16.3 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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bolero: F# in WebAssembly</title>
<link rel="icon" type="image/png" href="/img/favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="/img/favicon-32x32.png" sizes="32x32" />
<meta id='websharper-data' name='websharper-data' content='{"$TYPES":[],"$DATA":{"$V":{}}}' />
<link rel="stylesheet" href="/docs/content/fsdocs-default.css" />
<link rel="stylesheet" href="/docs/content/fsdocs-custom.css" />
<link rel="stylesheet" href="/css/all.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/highlight.min.js" type="text/javascript" charset="UTF-8"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/languages/fsharp.min.js" type="text/javascript" charset="UTF-8"></script><link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/vs.min.css"></link>
</head>
<body>
<header class="navbar overlay-bar">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item is-hoverable" onclick="Website.Client.ToggleDrawer()"><i class="fa fa-bars"></i></a>
<span class="navbar-item"><a href="/">Bolero</a></span>
</div>
<div class="navbar-menu">
<nav class="navbar-start"><a href="/" class="navbar-item is-hoverable has-text-weight-bold">Home</a><div class="navbar-item is-hoverable has-text-weight-bold has-dropdown">
<a href="/docs" class="navbar-link is-arrowless">Documentation</a>
<div class="navbar-dropdown has-text-weight-normal"><a class="navbar-item" href="/docs">Getting Started</a><a class="navbar-item" href="/docs/Hosting">Hosting models</a><a class="navbar-item" href="/docs/HTML">Writing HTML</a><a class="navbar-item" href="/docs/HTML-list-functions">Writing HTML (Legacy)</a><a class="navbar-item" href="/docs/Templating">HTML templates</a><a class="navbar-item" href="/docs/Elmish">Using Elmish</a><a class="navbar-item" href="/docs/Routing">Routing</a><a class="navbar-item" href="/docs/Remoting">Remoting</a><a class="navbar-item" href="/docs/Blazor">Using Blazor features</a><a class="navbar-item" href="/docs/JSON">Dealing with JSON</a><a class="navbar-item" href="/docs/Upgrade">Upgrade guide</a><a class="navbar-item" href="/docs/reference">API Reference</a></div>
</div><a href="/blog" class="navbar-item is-hoverable has-text-weight-bold">Blog</a><a href="https://tryfsharp.fsbolero.io" class="navbar-item is-hoverable has-text-weight-bold">Try F#</a></nav>
<nav class="navbar-end">
<a target="_blank" title="GitHub" href="https://github.com/fsbolero/bolero" class="navbar-item is-hoverable"><i class="fa fa-github"></i></a>
<a target="_blank" title="Twitter" href="https://twitter.com/fsbolero" class="navbar-item is-hoverable"><i class="fa fa-twitter"></i></a>
</nav>
</div>
</div>
</header>
<div class="drawer-backdrop" onclick="Website.Client.ToggleDrawer()">
<div id="left-drawer" class="lhs-drawer">
<nav class="menu">
<ul class="menu-list"><li>
<a href="/">Home</a>
</li><li>
<a href="/docs">Documentation</a>
<ul><li>
<a href="/docs">Getting Started</a>
</li><li>
<a href="/docs/Hosting">Hosting models</a>
</li><li>
<a href="/docs/HTML">Writing HTML</a>
</li><li>
<a href="/docs/HTML-list-functions">Writing HTML (Legacy)</a>
</li><li>
<a href="/docs/Templating">HTML templates</a>
</li><li>
<a href="/docs/Elmish">Using Elmish</a>
</li><li>
<a href="/docs/Routing">Routing</a>
</li><li>
<a href="/docs/Remoting">Remoting</a>
</li><li>
<a href="/docs/Blazor">Using Blazor features</a>
</li><li>
<a href="/docs/JSON">Dealing with JSON</a>
</li><li>
<a href="/docs/Upgrade">Upgrade guide</a>
</li><li>
<a href="/docs/reference">API Reference</a>
</li></ul>
</li><li>
<a href="/blog">Blog</a>
</li><li>
<a href="https://tryfsharp.fsbolero.io">Try F#</a>
</li></ul>
</nav>
</div>
</div>
<section class="hero is-medium is-dark page-banner">
<div class="hero-body has-text-centered">
<h1 class="title is-spaced">Bolero: F# in WebAssembly</h1>
<h2 class="subtitle">Develop SPAs with the full power of F# and .NET.</h2>
<div>
<a class="button is-warning has-text-weight-bold" href="https://tryfsharp.fsbolero.io" target="_blank">
<span>Try F# in WebAssembly</span>
<span class="icon is-small">
<i class="fa fa-external-link" aria-hidden="true"></i>
</span>
</a>
</div>
</div>
</section>
<section class="hero is-light is-dark">
<div class="hero-body">
<div class="container">
<div class="columns is-desktop is-vcentered-tablet is-variable is-8 is-reversed-tablet">
<div class="column home-splash has-text-centered ">
<video src="/videos/create-project.mp4" controls="" poster="/videos/create-project.png">
<img data-src="/videos/create-project.png" />
</video>
</div>
<div class="column has-text-left-desktop has-text-centered">
<h1 class="title is-spaced">Get started easily</h1>
<p class="subtitle" style="margin-bottom:0">with <a class="link" href="https://dotnet.microsoft.com/download">.NET SDK 8.0.100</a></p>
<p><small>Recommended version. Minimum compatible: 6.0.101.</small></p>
<p class="subtitle">Install the project template:</p>
<pre class="is-large"><input readonly="" onclick="select()" value="dotnet new -i Bolero.Templates" /></pre>
<p class="subtitle">Create a project:</p>
<pre class="is-large"><input readonly="" onclick="select()" value="dotnet new bolero-app -o MyApp" /></pre>
<p class="subtitle">Build and run:</p>
<pre class="is-large"><input readonly="" onclick="select()" value="cd MyApp && dotnet run --project src/MyApp.Server" /></pre>
<p> </p>
<div class="level">
<div class="level-left">
<div class="level-item">
<a class="button is-medium" href="/docs" target="_blank">Learn more...</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="hero is-white ">
<div class="hero-body">
<div class="container">
<div class="columns is-desktop is-vcentered-tablet is-variable is-8">
<div class="column has-text-right-desktop has-text-centered">
<h1 class="title is-spaced">F# on the client side, no JavaScript</h1>
<p class="subtitle">
Bolero uses <a href="https://blazor.net">Blazor</a> to bring F# to WebAssembly.
</p>
<p class="subtitle">
Create dynamic HTML content using a concise and readable syntax, in a full-fledged client-side .NET web framework.
</p>
<div class="level">
<div></div>
<div class="level-right">
<div class="level-item">
<a class="button is-medium" href="/docs/HTML" target="_blank">Learn more...</a>
</div>
</div>
</div>
</div>
<div class="column home-splash has-text-centered is-narrow"><img alt="DOM code in F#" data-src="/img/fsharp.png" /></div>
</div>
</div>
</div>
</section>
<section class="hero is-light ">
<div class="hero-body">
<div class="container">
<div class="columns is-desktop is-vcentered-tablet is-variable is-8 is-reversed-tablet">
<div class="column home-splash has-text-centered is-narrow"><img alt="" elmish="" model="" and="" update="" data-src="/img/elmish.png" /></div>
<div class="column has-text-left-desktop has-text-centered">
<h1 class="title is-spaced">Model-View-Update architecture with Elmish</h1>
<p class="subtitle">Structure client-side applications with clear separation of concerns between logic and display
with the popular Elmish library.</p>
<div class="level">
<div class="level-left">
<div class="level-item">
<a class="button is-medium" href="/docs/Elmish" target="_blank">Learn more...</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="hero is-white ">
<div class="hero-body">
<div class="container">
<div class="columns is-desktop is-vcentered-tablet is-variable is-8">
<div class="column has-text-right-desktop has-text-centered">
<h1 class="title is-spaced">HTML templates with hot reloading</h1>
<p class="subtitle">Alternatively, use HTML files with the Template type provider.</p>
<p class="subtitle">Bolero provides hot reloading of HTML template files for immediate feedback.</p>
<div class="level">
<div></div>
<div class="level-right">
<div class="level-item">
<a class="button is-medium" href="/docs/Templating" target="_blank">Learn more...</a>
</div>
</div>
</div>
</div>
<div class="column home-splash has-text-centered is-narrow"><img alt="HTML template and F# instantiation" data-src="/img/templating.png" /></div>
</div>
</div>
</div>
</section>
<section class="hero is-light ">
<div class="hero-body">
<div class="container">
<div class="columns is-desktop is-vcentered-tablet is-variable is-8 is-reversed-tablet">
<div class="column home-splash has-text-centered is-narrow"><img alt="Defining and calling a remote function" data-src="/img/remoting.png" /></div>
<div class="column has-text-left-desktop has-text-centered">
<h1 class="title is-spaced">Seamless server remoting</h1>
<p class="subtitle">Invoke server-side code hosted on ASP.NET Core as a simple asynchronous function call.</p>
<p class="subtitle">Easily integrate such a call in the Elmish update function.</p>
<div class="level">
<div class="level-left">
<div class="level-item">
<a class="button is-medium" href="/docs/Remoting" target="_blank">Learn more...</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="hero is-white ">
<div class="hero-body">
<div class="container">
<div class="columns is-desktop is-vcentered-tablet is-variable is-8">
<div class="column has-text-right-desktop has-text-centered">
<h1 class="title is-spaced">Automated URL routing</h1>
<p class="subtitle">Define your application's routes as an F# union, store it in your Elmish model,
and Bolero will parse and generate URLs.</p>
<div class="level">
<div></div>
<div class="level-right">
<div class="level-item">
<a class="button is-medium" href="/docs/Routing" target="_blank">Learn more...</a>
</div>
</div>
</div>
</div>
<div class="column home-splash has-text-centered is-narrow"><img alt="Defining and using a route" data-src="/img/routing.png" /></div>
</div>
</div>
</div>
</section>
<footer class="section footer first-footer has-text-centered">
<div class="container">
<div class="columns">
<div class="column">
<a target="_blank" href="https://github.com/fsbolero/template">
<img class="box no-padding" data-src="/img/screenshot-template.png" />
<h1 class="title">Bolero project template</h1>
</a>
</div>
<div class="column">
<a target="_blank" href="https://fsbolero.github.io/TodoMVC">
<img class="box no-padding" data-src="/img/screenshot-todomvc.png" />
<h1 class="title">TodoMVC</h1>
</a>
</div>
<div class="column">
<a target="_blank" href="https://tryfsharp.fsbolero.io">
<img class="box no-padding" data-src="/img/screenshot-tryfsharp.png" />
<h1 class="title">Try F# in your browser</h1>
</a>
</div>
</div>
</div>
</footer>
<footer class="section footer second-footer">
<div class="container">
<div class="columns">
<div class="column">
<h1 class="title"><a href="/">Home</a></h1>
<h1 class="title">Made with Bolero</h1>
<div class="menu">
<ul class="menu-list">
<li><a target="_blank" href="https://tryfsharp.fsbolero.io">Try F#</a></li>
<li><a target="_blank" href="https://github.com/fsbolero/TodoMVC">TodoMVC</a></li>
</ul>
</div>
</div>
<div class="column">
<h1 class="title">Documentation</h1>
<div class="menu">
<ul class="menu-list"><li><a href="/docs">Getting Started</a></li><li><a href="/docs/Hosting">Hosting models</a></li><li><a href="/docs/HTML">Writing HTML</a></li><li><a href="/docs/HTML-list-functions">Writing HTML (Legacy)</a></li><li><a href="/docs/Templating">HTML templates</a></li><li><a href="/docs/Elmish">Using Elmish</a></li><li><a href="/docs/Routing">Routing</a></li><li><a href="/docs/Remoting">Remoting</a></li><li><a href="/docs/Blazor">Using Blazor features</a></li><li><a href="/docs/JSON">Dealing with JSON</a></li><li><a href="/docs/Upgrade">Upgrade guide</a></li><li><a href="/docs/reference">API Reference</a></li></ul>
</div>
</div>
<div class="column">
<h1 class="title">We leverage</h1>
<div class="menu">
<ul class="menu-list">
<li><a target="_blank" href="https://fsharp.org">F#</a></li>
<li><a target="_blank" href="https://elmish.github.io/elmish/">Elmish</a></li>
<li><a target="_blank" href="https://dot.net">.NET Core</a></li>
<li><a target="_blank" href="https://blazor.net">Blazor</a></li>
<li><a target="_blank" href="https://webassembly.org/">WebAssembly</a></li>
</ul>
</div>
</div>
<div class="column">
<h1 class="title">Find us</h1>
<ul>
<li>
<a class="github-button" href="https://github.com/fsbolero/bolero" data-size="large" aria-label="Star fsbolero/bolero on GitHub">Bolero on GitHub</a>
</li>
<li>
<a href="https://twitter.com/fsbolero?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-size="large" data-dnt="true" data-show-count="false">Follow @fsbolero</a>
</li>
<li>
<a target="_blank" href="https://nuget.org/packages/Bolero"><img alt="NuGet" src="https://img.shields.io/nuget/v/Bolero.svg?label=Bolero%20on%20NuGet&logo=nuget&style=for-the-badge" /></a>
</li>
</ul>
</div>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vanilla-lazyload/8.6.0/lazyload.min.js"></script>
<script type="text/javascript">new LazyLoad();</script>
<script src="/js/Client.min.js"></script>
<script async="" defer="" src="https://buttons.github.io/buttons.js"></script>
<script async="" defer="" src="https://platform.twitter.com/widgets.js"></script>
<script lang="javascript" src="/docs/content/fsdocs-search.js"></script>
<script lang="javascript" src="/docs/content/fsdocs-tips.js"></script>
</body>
</html>