HOME

TheInfoList



OR:

WebSharper is an
open-source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use the source code, design documents, or content of the product. The open-source model is a decentralized sof ...
and commercial web-programming framework that allows
web developer A web developer is a programmer who develops World Wide Web applications using a client–server model. The applications typically use HTML, CSS, and JavaScript in the client, and any general-purpose programming language in the server. is used f ...
s to create and maintain complex
JavaScript JavaScript (), often abbreviated as JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS. As of 2022, 98% of Website, websites use JavaScript on the Client (computing), client side ...
and HTML5 front-end applications in the F# programming language. Other than a few native libraries, everything is F# source.


Overview

WebSharper includes support for jQuery, HTML5,
DOM Dom or DOM may refer to: People and fictional characters * Dom (given name), including fictional characters * Dom (surname) * Dom La Nena (born 1989), stage name of Brazilian-born cellist, singer and songwriter Dominique Pinto * Dom people, an et ...
and
EcmaScript ECMAScript (; ES) is a JavaScript standard intended to ensure the interoperability of web pages across different browsers. It is standardized by Ecma International in the documenECMA-262 ECMAScript is commonly used for client-side scripting o ...
. WebSharper Mobile includes support for
Android Android may refer to: Science and technology * Android (robot), a humanoid robot or synthetic organism designed to imitate a human * Android (operating system), Google's mobile operating system ** Bugdroid, a Google mascot sometimes referred to ...
,
iOS iOS (formerly iPhone OS) is a mobile operating system created and developed by Apple Inc. exclusively for its hardware. It is the operating system that powers many of the company's mobile devices, including the iPhone; the term also includes ...
and
Windows Phone Windows Phone (WP) is a discontinued family of mobile operating systems developed by Microsoft for smartphones as the replacement successor to Windows Mobile and Zune. Windows Phone featured a new user interface derived from the Metro design la ...
Formlets and Sitelets. Unlike many other web-programming toolkits, WebSharper offers a rich set of abstractions and DSL syntax for common web-related chores, such as composing HTML, defining web forms, managing required resources and handling URLs safely.


Extensions

WebSharper extensions include *
Bing Maps Bing Maps (previously Live Search Maps, Windows Live Maps, Windows Live Local, and MSN Virtual Earth) is a web mapping service provided as a part of Microsoft's Bing suite of search engines and powered by the Bing Maps Platform framework. Since 20 ...
* DHTMLX *
Ext JS Ext JS is a JavaScript application framework for building interactive cross-platform web applications using techniques such as Ajax, DHTML and DOM scripting. It can be used as a simple component framework (for example, to create dynamic grids on ...
* Formlets for jQuery UI * Formlets for jQuery Mobile * GlMatrix * Google Maps * Google Visualization * InfoVis *
jQuery Mobile jQuery Mobile is a touch-optimized web framework (also known as a mobile framework), specifically a JavaScript library, developed by the jQuery project team. The development focuses on creating a framework compatible with many smartphones and ta ...
* jQuery Tools * jQuery UI * Kendo UI * Modernizr * O3D * Protovis * Raphael * Sencha Touch * TinyMCE * Twitter * WebGL * YUI


Development Environments

WebSharper can be used with any text editor. WebSharper can also be used with
Visual Studio Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs including web site, websites, web apps, web services and mobile apps. Visual Studio uses Microsoft software development platfor ...
templates with full ASP.NET integration and with MonoDevelop.


Mobile

As a general framework for making web apps, WebSharper is also capable of being used as a framework for making mobile and tablet apps, either by making the needed widgets and animations from scratch, or by using one of the mobile frameworks for WebSharper. An HTML5 app written in WebSharper can have separate views for Tablets and Mobile phones.


Examples

The following sample displays a single HTML paragraph: JavaScript>let Main () = Div P [Text "Welcome"">ext_"Welcome".html" ;"title="P [Text "Welcome"">P [Text "Welcome" The matching server-side code is also written in F#: type HelloWorldViewer() = inherit Web.Control() JavaScript> override this.Body = HelloWorld.Main () :> Html.IPagelet


See also

* F# * Comparison of JavaScript frameworks * Comparison of server-side web frameworks, Comparison of web frameworks


Notes


References

* {{Cite journal, first1=Don , last1=Syme , author1-link=Don Syme , first2=Adam , last2=Granicz , first3=Antonio , last3=Cisternino , title=Expert F# 3.0 , year=2012 , publisher= Apress


External links


Official website
Web development software