请输入您要查询的百科知识:

 

词条 WebSharper
释义

  1. Overview

     Extensions  Development Environments 

  2. Mobile

  3. Examples

  4. See also

  5. Notes

  6. References

  7. External links

{{Infobox software
| name = WebSharper
| logo =
| screenshot =
| caption =
| author = Intellifactory
| developer =
| released = 2008
| latest release version = 4.2.9
| latest release date = {{release date|2018|04|17}}
| latest preview version =
| latest preview date =
| programming language = F#
| operating system = Linux, Windows, Mac OS X, Android, iOS, Windows Phone
| platform =
| language = F#, C#
| genre = Ajax framework
| license = Apache License 2.0, Commercial
| website = {{URL|http://websharper.com}}
}}

WebSharper is an open-source and commercial web-programming framework that allows web developers to create and maintain complex JavaScript 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 and EcmaScript. WebSharper Mobile includes support for Android, iOS and Windows Phone 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.[1]

Extensions

WebSharper extensions include

  • Bing Maps
  • DHTMLX
  • Ext JS
  • Formlets for jQuery UI
  • Formlets for jQuery Mobile
  • GlMatrix
  • Google Maps
  • Google Visualization
  • InfoVis
  • jQuery Mobile
  • 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 2008/2010/2012 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:

[]

let Main () = Div [ P [Text "Welcome"] ]

The matching server-side code is also written in F#:

type HelloWorldViewer() =

    inherit Web.Control()      []    override this.Body = HelloWorld.Main () :> Html.IPagelet

See also

  • F#
  • Comparison of JavaScript frameworks
  • Comparison of web frameworks

Notes

1. ^{{cite web | url = http://www.infoq.com/articles/WebSharper | title = F# mobile development | author = Adam Granicz | accessdate = 2012-11-26}}

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| ref=harv| postscript=}}

External links

  • Official website

1 : Web development software

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 14:29:42