Questions tagged [websharper]

The web platform based on an F# to JavaScript compiler.

WebSharper is a web platform based on an F# to JavaScript compiler, comparable to Google Web Toolkit with F# instead of Java. WebSharper is a product of IntelliFactory.

Website: http://websharper.com/

156 questions
15
votes
3 answers

Has anyone used WebSharper on any full projects?

It looks like quite a cool idea, but a cursory google search finds nothing but code snippets: no "large" projects that are made purely using WebSharper, that would serve as a sanity check "this really works". Any experience playing around with it…
Li Haoyi
  • 15,330
  • 17
  • 80
  • 137
11
votes
5 answers

Should writing Javascript be avoided in favour of GWT/WebSharper or some other abstraction?

I'm curious what's the view on "things that compile into javascript" e.g. GWT, Script# and WebSharper and their like. These seem to be fairly niche components aimed at allowing folks to write javascript without writing javascript. Personally I'm…
Francis Shanahan
  • 2,043
  • 19
  • 21
8
votes
1 answer

What's the difference between Behavior and Event in FRP?

I'm currently reading the documentation of WebSharper. In the section about FRP, it states: Functional Reactive Programming (FRP) typically provides an Event type for event streams and a Behavior type for time-varying values, together with useful…
xji
  • 7,341
  • 4
  • 40
  • 61
7
votes
3 answers

Static page with Websharper?

I have been looking into Websharper, and was wondering if it's possible to use it for static web apps. That is, not hosted in IIS, but as a static web page with javascript.
Walt
  • 71
  • 1
6
votes
0 answers

Cookie authentication in websharper + suave + OWIN

As part of an evaluation process for a commercial project I'm searching for any full fledged example of authentication/authorization using the websharper stack. I'd like to use OWIN, since it seems to be a well designed protocol, but I'm open to…
YuriAlbuquerque
  • 2,178
  • 1
  • 11
  • 19
6
votes
1 answer

WebSharper - Is there a simple way to catch "not found" routes?

Is there a simple way of using Sitelets and Application.MultiPage to generate a kind of "default" route (to catch "not found" routes, for example)? Example type EndPoint = | [] Home | []…
boechat107
  • 1,654
  • 14
  • 24
5
votes
1 answer

F# ionide websharperserverclient - how to run

I have a problem with running websharperserverclient template app from ionide project generator, and cannot find any information on the web how to do it - the closest thing i got was this question - I actually tried to run it with xsp4 in the…
5
votes
0 answers

How to run a Websharper project using .Net Core and Kestrel from OSX or Linux?

I'm trying to run a basic Websharper project right from the console using kestrel minimal server, there is a total lack of documentation. I ran the web project using XSP but I want to test it with the new runtime.
Arkantos
  • 163
  • 1
  • 8
5
votes
1 answer

Websharper : Using LI tags

I want to create something like that :
  • menu1
    • sub-menu1
  • menu2
So i write the following code using WebSharper : let el = UL [ LI [ …
Maxime Mangel
  • 1,906
  • 16
  • 18
5
votes
1 answer

Deploying Websharper Application from Visual Studio 2012

So as a beginner to the entire Visual Studio IDE and a beginner to F# and the F# based WebSharper, I have certain issues on the system. I use the 'Ctrl+F5' to test the application. Now what do I do if I want to package the application and deploy it…
N00bsie
  • 469
  • 3
  • 19
5
votes
3 answers

Is there any way to use JavaScript attribute by default?

I just want somehow to say "I want all methods in this project use [JavaScript]" Manually annotation every method is annoying
ais
  • 2,514
  • 2
  • 17
  • 24
5
votes
1 answer

F# quotations, arrays and self-identifier in constructors

I think that's a well-known limitation of F# but I couldn't find any good workarounds… So, here is the code (I tried to make it as simple as possible, so probably it looks like it doesn't make any sense): [] type Human…
kirelagin
  • 13,248
  • 2
  • 42
  • 57
5
votes
1 answer

Possible to use websharper as a drop-in JS replacement?

Is it possible to use websharper as a drop-in replacement for javascript without the additional complexity of sitelets or ASP.NET? For example, can I compile the following websharper library to a .js file and call the hello() function from within a…
Oenotria
  • 1,692
  • 11
  • 24
5
votes
0 answers

Websharper on mono

Simple question: Is it possible to host websharper applications on mono. If not, are there any plans to support such a feature?
raph.amiard
  • 2,755
  • 2
  • 20
  • 23
4
votes
1 answer

Protecting multiple, parameterized pages

The sample sitelet project template shows how to protect a single, non-parameterized page. I've googled around a bit, perused WebSharper's website, etc and can't figure out how to protect multiple, parameterized pages. Could someone show me, or…
Daniel
  • 47,404
  • 11
  • 101
  • 179
1
2 3
10 11